Skip to content

Commit

Permalink
Change Shellcheck GitHub action to cancel already running actions on …
Browse files Browse the repository at this point in the history
…same branch.
  • Loading branch information
Potherca committed Apr 6, 2022
1 parent b0b28a0 commit d149644
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ on:
- push
- pull_request

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

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

0 comments on commit d149644

Please sign in to comment.