Skip to content

Commit 9c25704

Browse files
committed
CI: Improve GHA job configuration to save resources on redundant builds
1 parent 287f300 commit 9c25704

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: .github/workflows/tests.yml

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
# Allow job to be triggered manually.
10+
workflow_dispatch:
11+
12+
# Cancel in-progress jobs when pushing to the same branch.
13+
concurrency:
14+
cancel-in-progress: true
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
917
jobs:
1018

1119
tests:

0 commit comments

Comments
 (0)