Skip to content

Commit

Permalink
chore: add exit code to nightly to avoid publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Apr 7, 2023
1 parent f697f0c commit 2234fd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-<short sha>-<date>
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
Expand Down

1 comment on commit 2234fd0

@vercel
Copy link

@vercel vercel bot commented on 2234fd0 Apr 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.