Skip to content

Commit d0f96aa

Browse files
authored
ci: autocancel repeated runs & pass job (#33)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 6fd3904 commit d0f96aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- master
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
env:
1115
FORCE_COLOR: 3
1216

@@ -24,3 +28,13 @@ jobs:
2428
- uses: actions/checkout@v3
2529
- uses: wntrblm/nox@main
2630
- run: nox
31+
32+
pass:
33+
if: always()
34+
needs: [checks]
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Decide whether the needed jobs succeeded or failed
38+
uses: re-actors/alls-green@release/v1
39+
with:
40+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)