Skip to content

Commit

Permalink
Workflow cancellation as per # per https://www.meziantou.net/how-to-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Jul 4, 2023
1 parent 8bc005b commit c0a8443
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ on:
branches:
- master

# per https://www.meziantou.net/how-to-cancel-github-workflows-when-pushing-new-commits-on-a-branch.htm
# https://docs.github.com/en/actions/learn-github-actions/expressions
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
concurrency:
# github.workflow: name of the workflow
# github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

# Cancel in-progress runs when a new workflow with the same group name is triggered
cancel-in-progress: true

jobs:
windows:
runs-on: windows-latest
Expand Down

0 comments on commit c0a8443

Please sign in to comment.