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.
This commit is contained in:
Wolfgang Walther
2024-02-24 17:27:01 +01:00
committed by Wolfgang Walther
parent 6caaee777b
commit b49e3b1e5b
+4 -1
View File
@@ -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