Skip to content

Commit 5a928df

Browse files
author
Vivek Vishal
authored
Merge pull request #629 from layer5io/vishalvivekm-patch-1
fix: concurrency fixes for release-drafter and deploy-site workflows
2 parents db6d3c2 + 3f05a48 commit 5a928df

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/hugo.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ permissions:
1818
pages: write
1919
id-token: write
2020

21-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2321
concurrency:
24-
group: "pages"
25-
cancel-in-progress: false
22+
group: "pages-deployment"
23+
cancel-in-progress: true # Only latest deployment runs
2624

2725
# Default to bash
2826
defaults:

.github/workflows/release-drafter.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
# our release branch
66
branches:
77
- master
8+
paths-ignore:
9+
- '.github/**'
10+
- 'archive/**'
11+
concurrency:
12+
group: "release-drafter-workflow"
13+
cancel-in-progress: true # Only latest draft creation runs
814

915
jobs:
1016
update_release_draft:
@@ -15,4 +21,4 @@ jobs:
1521
with:
1622
config-name: release-drafter.yml
1723
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)