We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e40e18 commit 947d5e0Copy full SHA for 947d5e0
.github/workflows/cleanup.yml
@@ -14,8 +14,9 @@ jobs:
14
- uses: actions/github-script@v7
15
with:
16
script: |
17
- const KEEP = 1;
+ const KEEP = 0;
18
const workflowNames = ["VirusTotal Scan", "Cleanup old workflow runs"];
19
+ const currentWorkflowName = context.workflow;
20
21
// Get workflow ID
22
const workflows = await github.rest.actions.listRepoWorkflows({
@@ -30,6 +31,11 @@ jobs:
30
31
continue;
32
}
33
34
+ if (wf.name === currentWorkflowName) {
35
+ core.info(`Skipping current workflow "${wf.name}"`);
36
+ continue;
37
+ }
38
+
39
// List runs
40
const runs = await github.rest.actions.listWorkflowRuns({
41
owner: context.repo.owner,
0 commit comments