Skip to content

Commit

Permalink
Merge pull request #10 from miles170/ci-concurrency-group
Browse files Browse the repository at this point in the history
ci: replace cancel-previous-runs job with concurrency group
  • Loading branch information
miles170 authored Jul 31, 2024
2 parents 551670d + 180ed05 commit e7a0af1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ env:
HOMEBREW_GITHUB_ACTIONS: 1
HOMEBREW_NO_AUTO_UPDATE: 1

jobs:
cancel_previous_runs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: "tests-${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit e7a0af1

Please sign in to comment.