From 59f622e00d1dfc8a543568d7d0cb87e9412df3cc Mon Sep 17 00:00:00 2001 From: Steve Schmerler Date: Sun, 5 Jan 2025 02:36:31 +0100 Subject: [PATCH] CI: prevent gh-pages from running if tests fail (#34) --- .github/workflows/gh-pages.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index efefb7a..3868ae5 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -11,6 +11,10 @@ on: jobs: pages: runs-on: ubuntu-latest + + # Only if tests have passed, not just if the tests workflow ran. + if: ${{ github.event.workflow_run.conclusion == "success" }} + steps: - name: checkout