From 2bb8b537cb9565c90b460fa52c6fd2064b4d9f68 Mon Sep 17 00:00:00 2001 From: Joe Martin Date: Thu, 9 Jan 2025 11:45:31 -0800 Subject: [PATCH] fix: enhance prerelease workflow to support pre-release input for snapshot detection --- .github/workflows/create-prerelease.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-prerelease.yml b/.github/workflows/create-prerelease.yml index 6c46689..41f80af 100644 --- a/.github/workflows/create-prerelease.yml +++ b/.github/workflows/create-prerelease.yml @@ -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" @@ -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: