Skip to content

Commit

Permalink
Add "cancel-in-progress" option for Nix runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-trinh committed Jul 6, 2024
1 parent 7b92bd1 commit 4e138a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: "Nix CI"

on: [pull_request, push]

# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
tests:
name: "Nix build on ${{ matrix.os }}"
Expand Down

0 comments on commit 4e138a5

Please sign in to comment.