From cc941875cf16fb524857c04c23bd61e0496c07cd Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Wed, 19 Nov 2025 17:00:10 +0100 Subject: [PATCH] :construction_worker: Add conditional step for test results in GitHub Actions Signed-off-by: Paillat-dev --- .github/workflows/lib-checks.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/lib-checks.yml b/.github/workflows/lib-checks.yml index 034a042c50..602e18f7b0 100644 --- a/.github/workflows/lib-checks.yml +++ b/.github/workflows/lib-checks.yml @@ -115,3 +115,14 @@ jobs: - name: "Run tests" run: uv run tox + tests-pass: # ref: https://github.com/orgs/community/discussions/4324#discussioncomment-3477871 + runs-on: ubuntu-20.04 + needs: [tests] + if: ${{ github.event_name != 'schedule' }} + steps: + - name: Tests succeeded + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: exit 0 + - name: Tests failed + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1