Skip to content

Commit

Permalink
CI: cancel older concurrent PR runs
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <axelheider@gmx.de>
  • Loading branch information
axel-h authored and lsf37 committed Apr 9, 2024
1 parent 23477c7 commit d749931
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/sel4test-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ on:
branches: [master]
pull_request:


# Cancel older runs of this workflow that are still not finished for the
# current PR. This reduces the CI load. For deployment to the master branch,
# the workflow will run on each push, but no cancellation happens here.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('run-{0}', github.run_id) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
cparser:
name: Simulation
Expand Down

0 comments on commit d749931

Please sign in to comment.