Skip to content

Commit 658bd7e

Browse files
authored
Merge pull request #179 from gardenlinux/fix-pr-image-cleanup
ci: cancel dev workflow before cleanup
2 parents b13490c + c1eb2e9 commit 658bd7e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/dev.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
paths-ignore:
1212
- "**/README.md"
1313
- "docs/**"
14+
15+
# Cancel any in-progress PR workflow runs when PR is closed
16+
# Used to ensure cleanup runs after any PR build are uploaded (or aborts before the upload)
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: ${{ github.event.action == 'closed' }}
20+
1421
jobs:
1522
set_version:
1623
if: ${{ github.event_name != 'pull_request' || github.event.action != 'closed' }}

0 commit comments

Comments
 (0)