Skip to content

Commit 914d9db

Browse files
Merge pull request #80 from WarehouseFinds/fix/workflow_cleanup
Refine workflow cleanup patterns
2 parents 95af006 + 480c3a9 commit 914d9db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cron-cleanup-workflow-runs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
token: ${{ github.token }}
3232
repository: ${{ github.repository }}
33-
delete_workflow_pattern: pull_request
33+
delete_workflow_pattern: "CI • ${{ github.repository }} • push • pull_request"
3434
retain_days: ${{ github.event.inputs.retain-days || 2 }}
3535
keep_minimum_runs: ${{ github.event.inputs.minimum-runs || 2 }}
3636
check_pullrequest_exist: true
@@ -40,15 +40,15 @@ jobs:
4040
with:
4141
token: ${{ github.token }}
4242
repository: ${{ github.repository }}
43-
delete_workflow_pattern: push
43+
delete_workflow_pattern: "CI • ${{ github.repository }} • push • main"
4444
retain_days: ${{ github.event.inputs.retain-days || 2 }}
4545
keep_minimum_runs: ${{ github.event.inputs.minimum-runs || 2 }}
4646

47-
- name: Delete workflow runs (Scheduled runs)
47+
- name: Delete workflow runs (Scheduled cleanup runs)
4848
uses: Mattraks/delete-workflow-runs@5bf9a1dac5c4d041c029f0a8370ddf0c5cb5aeb7 #v2.1
4949
with:
5050
token: ${{ github.token }}
5151
repository: ${{ github.repository }}
52-
delete_workflow_pattern: schedule
52+
delete_workflow_pattern: cleanup
5353
retain_days: ${{ github.event.inputs.retain-days || 2 }}
5454
keep_minimum_runs: ${{ github.event.inputs.minimum-runs || 2 }}

0 commit comments

Comments
 (0)