Skip to content

Commit b6609df

Browse files
add concurrency groups
1 parent 9881d1c commit b6609df

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/publish-mrc-website.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ permissions:
1515
checks: write
1616
repository-projects: read
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
merge:
2024
name: generate storybook and coverage report

.github/workflows/push.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ permissions:
1515
statuses: write
1616
checks: write
1717
repository-projects: read
18-
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
chromatic-deployment:
2125
name: "Deploy Storybook to Chromatic"
@@ -119,7 +123,6 @@ jobs:
119123
uses: "actions/checkout@v4"
120124
with:
121125
ref: ${{ github.ref }}
122-
token: ${{ secrets.PACKAGES_ADMIN_TOKEN }}
123126
fetch-depth: 0
124127

125128
- name: Setup Git
@@ -148,6 +151,9 @@ jobs:
148151
ssh-add - <<< "${COMMIT_KEY}"
149152
git config --add [email protected]:.insteadof https://github.com/
150153
154+
# Pull latest changes before pushing
155+
git pull --rebase origin main
156+
151157
# Push with tags
152158
git push --follow-tags origin
153159

.github/workflows/release-package.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ permissions:
1313
statuses: write
1414
checks: write
1515
repository-projects: read
16-
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
build:
1923
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)