From c8125afe65cd90f1203757b877c69e454bd8ddeb Mon Sep 17 00:00:00 2001 From: Miroma <136986257+its-miroma@users.noreply.github.com> Date: Sun, 26 Jan 2025 19:59:34 +0100 Subject: [PATCH] Fix `if` condition? --- .github/workflows/build.yml | 5 +++-- .github/workflows/publish.yml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1e399fa0..633b75f03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ concurrency: jobs: docs: - if: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs" + if: ${{ github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs" }} runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -22,7 +22,7 @@ jobs: - run: npm run build mod: - if: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs" + if: ${{ github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs" }} runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -45,6 +45,7 @@ jobs: reference/**/build/reports/checkstyle/*.xml cleanup: + if: ${{ cancelled() }} runs-on: ubuntu-24.04 steps: - run: exit 0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb16401d7..bdb82bed5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -45,6 +45,7 @@ jobs: uses: actions/deploy-pages@v4 cleanup: + if: ${{ cancelled() }} runs-on: ubuntu-24.04 steps: - run: exit 0