Skip to content

Commit

Permalink
Cancel in progress deploy actions (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
crespire authored Nov 17, 2024
1 parent e049d03 commit 6119147
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy_from_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
branches:
- main

# github.workflow = Workflow name
# github.event.pull_request.number = PR number
# github.ref = if trigger is a push, use the branch name instead
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 6119147

Please sign in to comment.