Skip to content

Commit

Permalink
tools: github actions: prevent multiple concurrent workflow runs on t…
Browse files Browse the repository at this point in the history
…he same branch/ref

- cancel other pending/in-progress workflows if a new commit is pushed to the ref
- ref. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
  • Loading branch information
nodiscc committed Jan 24, 2023
1 parent 4915c18 commit b323f8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
test_run:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b323f8e

Please sign in to comment.