Skip to content

Commit c40a6a3

Browse files
committed
cleanup workflow: revert previous commit
1 parent aead4e8 commit c40a6a3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/cleanup.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- uses: actions/github-script@v7
1515
with:
1616
script: |
17-
const KEEP = 0;
18-
const workflowNames = ["VirusTotal Scan"];
17+
const KEEP = 1;
18+
const workflowNames = ["VirusTotal Scan", "Cleanup old workflow runs"];
1919
2020
// Get workflow ID
2121
const workflows = await github.rest.actions.listRepoWorkflows({
@@ -49,11 +49,4 @@ jobs:
4949
});
5050
}
5151
}
52-
- name: Delete this cleanup run
53-
run: |
54-
curl -X DELETE \
55-
-H "Accept: application/vnd.github+json" \
56-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
57-
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}
58-
5952

0 commit comments

Comments
 (0)