Skip to content

Commit

Permalink
fix: enhance prerelease workflow to support pre-release input for sna…
Browse files Browse the repository at this point in the history
…pshot detection
  • Loading branch information
arrowplum committed Jan 9, 2025
1 parent 2bc9a93 commit 2bb8b53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
VERSION=${TAG#v}
# Check if it's a snapshot
if [[ "$VERSION" == *-SNAPSHOT-* ]]; then
if [[ "$VERSION" == *-SNAPSHOT-* || ${{ inputs.preRelease }} == true ]]; then
SNAPSHOT="true"
else
SNAPSHOT="false"
Expand All @@ -74,6 +74,8 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "is-snapshot=${SNAPSHOT}" >> $GITHUB_OUTPUT
echo "Version: ${VERSION} Snapshot: ${SNAPSHOT} version=${VERSION} is-snapshot=${SNAPSHOT}"
- name: setup jfrog
uses: jfrog/setup-jfrog-cli@v4
env:
Expand Down

0 comments on commit 2bb8b53

Please sign in to comment.