Skip to content

Commit e8182f9

Browse files
committed
Use built-in concurrency feature in Github Actions
1 parent edea183 commit e8182f9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,16 @@ on:
1414
- 'RELEASE-NOTES.txt'
1515
permissions:
1616
contents: read
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
1720

1821
jobs:
1922
prim-rev:
20-
permissions:
21-
actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs
22-
contents: read # for actions/checkout to fetch code
2323
name: prim and rev tests
2424
runs-on: windows-latest
2525

2626
steps:
27-
- uses: n1hility/cancel-previous-runs@v3
28-
with:
29-
token: ${{ secrets.GITHUB_TOKEN }}
30-
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"
31-
3227
- uses: actions/checkout@v3
3328
- uses: actions/setup-python@v4
3429
with:

0 commit comments

Comments
 (0)