From b49e3b1e5bc58328f769fcd6aad07e9d990ef048 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 24 Feb 2024 16:39:29 +0100 Subject: [PATCH] ci: Only run ARM-related jobs if related settings are present This allows CI to properly run through in a fork, which doesn't have the SSH_ARM_xxx settings. --- .github/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0d286227a5..579183c881 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,6 +35,7 @@ jobs: arm: name: Build / Cabal - aarch64 GHC 9.4.8 + if: vars.SSH_ARM_ENABLED runs-on: ubuntu-latest outputs: remotepath: ${{ steps.Remote-Dir.outputs.remotepath }} @@ -103,7 +104,9 @@ jobs: prepare: name: Release / Prepare - if: startsWith(github.ref, 'refs/tags/v') + if: | + startsWith(github.ref, 'refs/tags/v') && + (success() || needs.arm.result == 'skipped') runs-on: ubuntu-latest needs: - docs