From e0e00a8f11f18690149d049fca9949d132f63f3e Mon Sep 17 00:00:00 2001 From: David Bauer Date: Fri, 9 Aug 2024 12:34:50 +0200 Subject: [PATCH] ci: skip deployment in forks Even when the tag matches a release, we should never deploy in a fork. Signed-off-by: David Bauer (cherry picked from commit 08a00c21f355b2c52525f71b4586de60d344d8c5) --- .github/build-meta.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/build-meta.sh b/.github/build-meta.sh index e41ab98..bc08ee9 100644 --- a/.github/build-meta.sh +++ b/.github/build-meta.sh @@ -184,6 +184,13 @@ if [ "$GITHUB_REPOSITORY" != "$UPSTREAM_REPO_NAME" ] && [ "$SIGN_MANIFEST" != "0 echo "::warning::Skip manifest signature due to action running in fork." fi +# We should neither deploy in a fork, as the workflow is hard-coding out firmware-server +if [ "$GITHUB_REPOSITORY" != "$UPSTREAM_REPO_NAME" ] && [ "$DEPLOY" != "0" ]; then + DEPLOY="0" + + echo "::warning::Skip deployment due to action running in fork." +fi + # Determine Version to use RELEASE_VERSION="${RELEASE_VERSION:-$DEFAULT_RELEASE_VERSION}"