From 7aff50376b10bcce1281d25e0b866b62f3299b0c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 4 Mar 2023 16:14:28 -0500 Subject: [PATCH] ci: autocancel repeated runs & pass job Signed-off-by: Henry Schreiner --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fff51e..88c86a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: FORCE_COLOR: 3 @@ -24,3 +28,13 @@ jobs: - uses: actions/checkout@v3 - uses: wntrblm/nox@main - run: nox + + pass: + if: always() + needs: [checks] + runs-on: ubuntu-latest + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }}