Skip to content

Commit

Permalink
Use 'concurrency' instead of 'styfle/cancel-workflow-action' in GitHu…
Browse files Browse the repository at this point in the history
…b Actions (#2591)

Fixes: #2590.
  • Loading branch information
gurza committed Dec 6, 2022
1 parent 1cb3b4d commit 153bbc2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
@@ -1,3 +1,7 @@
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand All @@ -15,9 +19,6 @@ permissions:

jobs:
test:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
contents: read # for actions/checkout to fetch code
strategy:
matrix:
go-version: [1.x, 1.18.x]
Expand All @@ -35,11 +36,6 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 #0.11.0
with:
access_token: ${{ github.token }}

- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
Expand Down

0 comments on commit 153bbc2

Please sign in to comment.