From 295209a56d9573f7b507a64bbde5082791e8f50d Mon Sep 17 00:00:00 2001 From: Yuriy Liskov Date: Sun, 14 Dec 2025 16:02:20 +0200 Subject: [PATCH] upd virus total workflow --- .github/workflows/virustotal_scan.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/virustotal_scan.yml b/.github/workflows/virustotal_scan.yml index 761f05824..620905d89 100644 --- a/.github/workflows/virustotal_scan.yml +++ b/.github/workflows/virustotal_scan.yml @@ -20,6 +20,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + rm -rf release_assets mkdir -p release_assets gh release download ${{ github.event.release.tag_name }} --dir release_assets --pattern "*.apk" ls -l release_assets @@ -71,8 +72,9 @@ jobs: TAG: ${{ github.event.release.tag_name }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # <-- mandatory run: | - gh release view "$TAG" --json body -q .body > current_notes.txt - cat vt_report.txt >> current_notes.txt + body=$(gh release view "$TAG" --json body -q .body || echo "") + body=$(echo "$body" | sed '/🛡️ VirusTotal Scan Results:/,$d') + echo -e "$body\n$(cat vt_report.txt)" > current_notes.txt gh release edit "$TAG" --notes-file current_notes.txt - name: Done