Skip to content

Commit

Permalink
CI: Cancel prior runs when new run for same PR/branch is started (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored Jul 28, 2023
1 parent d74cf04 commit 8e04681
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ on:
branches: main
schedule:
- cron: '5 0 * * *'


# Cancel in progress CI runs when a new run targeting the same PR or branch/tag is triggered.
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
flake8:
Expand Down

0 comments on commit 8e04681

Please sign in to comment.