From 2234fd08ce6ef377d1ebe565fa8178f4d4e329ae Mon Sep 17 00:00:00 2001 From: Josh <37798644+joshuaellis@users.noreply.github.com> Date: Fri, 7 Apr 2023 10:10:49 +0100 Subject: [PATCH] chore: add exit code to nightly to avoid publishing --- .github/workflows/nightly.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f39f88a58d..4a6c18fe7b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -33,11 +33,13 @@ jobs: # if not, we'll create a new nightly tag if [[ ${LATEST_NIGHTLY_TAG} == v0.0.0-nightly-${SHORT_SHA} ]]; then echo "🛑 Latest nightly tag is the same as the latest commit sha, skipping nightly release" + exit 1 else # v0.0.0-nightly-- NEXT_VERSION=nightly-${SHORT_SHA} # set output so it can be used in other jobs echo "NEXT_VERSION=${NEXT_VERSION}" >> $GITHUB_OUTPUT + exit 0 fi - uses: actions/setup-node@v3