Skip to content

Commit 1fbe9a7

Browse files
committed
don't run many checks on same branch
1 parent 779cbb0 commit 1fbe9a7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/bevy_mod_scripting.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ on:
1212

1313
name: Check and Lint - bevy_mod_scripting
1414

15+
concurrency:
16+
# Use github.run_id on main branch
17+
# Use github.event.pull_request.number on pull requests, so it's unique per pull request
18+
# Use github.ref on other branches, so it's unique per branch
19+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
20+
cancel-in-progress: true
21+
1522
jobs:
1623
check:
17-
name: Check {{ matrix.run_args.label }}
24+
name: Check - {{ matrix.run_args.label }}
1825
runs-on: ${{ matrix.run_args.os }}
1926
strategy:
2027
matrix:

0 commit comments

Comments
 (0)