Skip to content

Commit

Permalink
Allow cancellation of PR jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
clementguillot committed Feb 20, 2024
1 parent 8167c10 commit b7c7a89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: CI

on:
push:
branches:
- main
pull_request:

# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

# Needed for nx-set-shas when run on the main branch
permissions:
actions: read
Expand Down

0 comments on commit b7c7a89

Please sign in to comment.