Skip to content

Commit

Permalink
ci: skip deployment in forks
Browse files Browse the repository at this point in the history
Even when the tag matches a release, we should never deploy in a fork.

Signed-off-by: David Bauer <[email protected]>
  • Loading branch information
blocktrron committed Aug 9, 2024
1 parent b334be4 commit 08a00c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/build-meta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,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}"

Expand Down

0 comments on commit 08a00c2

Please sign in to comment.