Skip to content

Commit

Permalink
gha - fix concurrency cancelling preview deployement on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Oct 22, 2024
1 parent 7c53a22 commit 8cb7368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ name: Deploy Preview

concurrency:
# Use github.event.pull_request.number on pull requests, so it's unique per pull request
# Use github.event.issue.number on issue comments, so it's unique per comment
# Use github.ref on other branches, so it's unique per branch
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
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 }}
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 8cb7368

Please sign in to comment.