Skip to content

Commit 8cb7368

Browse files
committed
gha - fix concurrency cancelling preview deployement on comments
1 parent 7c53a22 commit 8cb7368

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ name: Deploy Preview
88

99
concurrency:
1010
# Use github.event.pull_request.number on pull requests, so it's unique per pull request
11+
# Use github.event.issue.number on issue comments, so it's unique per comment
1112
# Use github.ref on other branches, so it's unique per branch
12-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
13+
group: ${{ github.workflow }}-${{ (github.event.pull_request && format('PR-{0}', github.event.pull_request.number)) || ( github.event.issue && format('comment-{0}', github.event.issue.number) ) || github.ref }}
1314
cancel-in-progress: true
1415

1516
jobs:

0 commit comments

Comments
 (0)