Skip to content

Commit

Permalink
Merge pull request #157 from scipp/cancel_running_workflows
Browse files Browse the repository at this point in the history
Cancel running workflows if new push to PR
  • Loading branch information
nvaytet authored Feb 8, 2023
2 parents 4dcdb0a + e462224 commit 723727e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ on:
push:
branches:
- main
- release
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
cancel-in-progress: true # cancel jobs from previous push

jobs:
formatting:
name: Formatting and static analysis
Expand Down

0 comments on commit 723727e

Please sign in to comment.