Skip to content

Commit 9530182

Browse files
authored
Merge pull request #11 from rajbos/copilot/fix-10
Skip running workflows on different events for the same branch to prevent concurrent runs
2 parents 49ccf57 + 2a74d3c commit 9530182

3 files changed

Lines changed: 7 additions & 36 deletions

File tree

.github/workflows/deploy-to-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ permissions:
1616
pages: write
1717
id-token: write
1818

19-
# Allow only one concurrent deployment
19+
# Allow only one concurrent deployment per branch
2020
concurrency:
21-
group: "pages"
21+
group: "pages-${{ github.head_ref || github.ref }}"
2222
cancel-in-progress: true
2323

2424
jobs:

.github/workflows/deploy.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
release:
55
types: [created]
66

7+
# Allow only one concurrent release build
8+
concurrency:
9+
group: "publish-${{ github.ref }}"
10+
cancel-in-progress: true
11+
712
jobs:
813
build-and-publish:
914
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)