Skip to content

Commit

Permalink
Cancel concurrent workflow runs in PRs.
Browse files Browse the repository at this point in the history
(cherry picked from commit d0e6109)
  • Loading branch information
felixfontein committed Feb 23, 2023
1 parent d50d6e0 commit 57e6bb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
- stable-2
pull_request:

concurrency:
# Make sure there is at most one active run per PR, but do not cancel any non-PR runs
group: ${{ github.workflow }}-${{ (github.head_ref && github.event.number) || github.run_id }}
cancel-in-progress: true

jobs:
sanity:
name: EOL Sanity (Ⓐ${{ matrix.ansible }})
Expand Down

0 comments on commit 57e6bb7

Please sign in to comment.