Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
paths-ignore:
- "**/README.md"
- "docs/**"

# Cancel any in-progress PR workflow runs when PR is closed
# Used to ensure cleanup runs after any PR build are uploaded (or aborts before the upload)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event.action == 'closed' }}

jobs:
set_version:
if: ${{ github.event_name != 'pull_request' || github.event.action != 'closed' }}
Expand Down Expand Up @@ -91,6 +98,9 @@ jobs:
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.action == 'closed' }}
runs-on: ubuntu-latest
steps:
- name: Wait for cancelled workflow runs to complete
run: sleep 30

- name: Cleanup OCI images via GitHub API
run: |
PR_NUMBER=${{ github.event.pull_request.number }}
Expand Down
Loading