Skip to content

Commit

Permalink
deployment-pr.yml: do not deploy the same PR at the same time
Browse files Browse the repository at this point in the history
Else the second deployment fails if you push to fast
to the same PR.
The default behaviour is that the previous deployment is canceled.
  • Loading branch information
BacLuc committed Nov 11, 2023
1 parent 2026ca5 commit 4be3fc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deployment-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request_target:
types: [opened, reopened, labeled, synchronize]

concurrency:
group: ${{ github.workflow}}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
build-and-push:
if: contains(github.event.pull_request.labels.*.name, 'deploy!')
Expand Down

0 comments on commit 4be3fc3

Please sign in to comment.