Skip to content

Commit

Permalink
Allow concurrent CI runs on main, but only cancel-in-progress if not-…
Browse files Browse the repository at this point in the history
…main
  • Loading branch information
Electroid committed Apr 17, 2024
1 parent 97761cb commit 13f0188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
Expand Down

0 comments on commit 13f0188

Please sign in to comment.