From c40a6a3cc795cbef7738b136b74dcca5b4f101e9 Mon Sep 17 00:00:00 2001 From: Yuriy Liskov Date: Mon, 29 Dec 2025 15:06:41 +0200 Subject: [PATCH] cleanup workflow: revert previous commit --- .github/workflows/cleanup.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 49d392bbe..9afcb8ba2 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/github-script@v7 with: script: | - const KEEP = 0; - const workflowNames = ["VirusTotal Scan"]; + const KEEP = 1; + const workflowNames = ["VirusTotal Scan", "Cleanup old workflow runs"]; // Get workflow ID const workflows = await github.rest.actions.listRepoWorkflows({ @@ -49,11 +49,4 @@ jobs: }); } } - - name: Delete this cleanup run - run: | - curl -X DELETE \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }} -