mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-05 21:40:47 -06:00
cleanup workflow: revert previous commit
This commit is contained in:
11
.github/workflows/cleanup.yml
vendored
11
.github/workflows/cleanup.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user