Skip to content

Commit

Permalink
Fix deploy workflow concurrency (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
js0mmer authored Dec 7, 2024
1 parent 54ef476 commit 7113666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
- reopened
- synchronize

# do not cancel in progress, SST will be stuck in a "locked" state if cancelled mid-deployment
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_and_deploy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clean-up-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
types: [closed]

# use pr number for group instead of github.ref because ref will be main branch when the PR closes which is not a unique group for the PR
concurrency:
group: ${{ github.workflow }}-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
Expand Down

0 comments on commit 7113666

Please sign in to comment.