Skip to content

Commit

Permalink
ci: add concurrency control to actions where snaps are built
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Nov 27, 2023
1 parent 240eaef commit 40f1bc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/snap-store-publish-to-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
SNAPCRAFTERS_BOT_COMMIT:
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Permissions for GITHUB_TOKEN
permissions:
contents: read
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-snap-can-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
branches: [ "**" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Permissions for GITHUB_TOKEN
permissions:
contents: read
Expand Down

0 comments on commit 40f1bc8

Please sign in to comment.