mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-05 13:30:30 -06:00
workflows: CI add retention, vt: use the same url for a file and a badge
This commit is contained in:
1
.github/workflows/CI.yml
vendored
1
.github/workflows/CI.yml
vendored
@@ -23,5 +23,6 @@ jobs:
|
||||
- uses: actions/upload-artifact@v5.0.0
|
||||
with:
|
||||
path: ./smarttubetv/build/outputs/apk/ststable/debug/*.apk
|
||||
retention-days: 1
|
||||
|
||||
|
||||
|
||||
8
.github/workflows/virustotal_scan.yml
vendored
8
.github/workflows/virustotal_scan.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: VirusTotal Quick Scan
|
||||
name: VirusTotal Scan
|
||||
|
||||
on:
|
||||
release:
|
||||
@@ -75,11 +75,11 @@ jobs:
|
||||
apk_url="https://github.com/${{ github.repository }}/releases/download/$TAG_NAME/$filename"
|
||||
|
||||
if [ "$status" != "completed" ]; then
|
||||
echo " - [](https://www.virustotal.com/gui/file/$sha256) [$filename]($apk_url) — BAD ❌ (analysis incomplete)" >> vt_report.txt
|
||||
echo " - [ $filename](https://www.virustotal.com/gui/file/$sha256) — BAD ❌ (analysis incomplete)" >> vt_report.txt
|
||||
elif [ "$malicious" -gt 0 ]; then
|
||||
echo " - [](https://www.virustotal.com/gui/file/$sha256) [$filename]($apk_url) — BAD ❌" >> vt_report.txt
|
||||
echo " - [ $filename](https://www.virustotal.com/gui/file/$sha256) — BAD ❌" >> vt_report.txt
|
||||
else
|
||||
echo " - [](https://www.virustotal.com/gui/file/$sha256) [$filename]($apk_url)" >> vt_report.txt
|
||||
echo " - [ $filename](https://www.virustotal.com/gui/file/$sha256)" >> vt_report.txt
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
@echo off
|
||||
echo Running %~n0...
|
||||
echo This script deletes all workflow runs from the current repo.
|
||||
echo WARNING: Deleted runs cannot be recovered.
|
||||
|
||||
REM List all workflow runs (up to 1000)
|
||||
for /F "tokens=*" %%A in ('gh run list --limit 1000') do (
|
||||
REM Skip the header line
|
||||
if NOT "%%A"=="ID" (
|
||||
echo Deleting workflow run %%A
|
||||
gh run delete %%A --confirm
|
||||
)
|
||||
)
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user