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: