From 2bdb0d458f4a88cce8c49c87305e2b38aea8ffbf Mon Sep 17 00:00:00 2001 From: steve02081504 Date: Sat, 27 Jul 2024 14:59:16 +0800 Subject: [PATCH] Create AV-auto-test.yaml --- .github/workflows/AV-auto-test.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/AV-auto-test.yaml diff --git a/.github/workflows/AV-auto-test.yaml b/.github/workflows/AV-auto-test.yaml new file mode 100644 index 00000000..696022f9 --- /dev/null +++ b/.github/workflows/AV-auto-test.yaml @@ -0,0 +1,29 @@ +name: AV-auto-test +on: + schedule: + - cron: "27 7 * * *" + workflow_dispatch: + +jobs: + test: + runs-on: windows-latest + steps: + - name: compile exe for VT submission + shell: pwsh + run: | + Install-Module -Name ps12exe -Force -Scope CurrentUser + @' + #_require ps12exe + #_pragma Console 0 + $Number = [bigint]::Parse('${{ github.run_id }}') + $NextNumber = $Number+1 + $NextScript = $PSEXEscript.Replace("Parse('$Number')", "Parse('$NextNumber')") + $NextScript | ps12exe -outputFile $PSScriptRoot/$NextNumber.exe *> $null + $Number + '@ | ps12exe -o ./${{ github.run_id }}.exe + - name: VirusTotal Scan + uses: crazy-max/ghaction-virustotal@v4 + with: + vt_api_key: ${{ secrets.VT_API_KEY }} + files: | + ./${{ github.run_id }}.exe