Skip to content

Commit

Permalink
Use built-in concurrency feature in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed May 8, 2023
1 parent edea183 commit e8182f9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,16 @@ on:
- 'RELEASE-NOTES.txt'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
prim-rev:
permissions:
actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs
contents: read # for actions/checkout to fetch code
name: prim and rev tests
runs-on: windows-latest

steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"

- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit e8182f9

Please sign in to comment.