We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efba580 commit 8f36e74Copy full SHA for 8f36e74
.github/workflows/publish-release.yml
@@ -40,7 +40,14 @@ jobs:
40
cache: 'maven'
41
- name: Determine Version
42
id: version
43
+ env:
44
+ REF: ${{ github.event.workflow_run.head_branch }}
45
run: |
46
+ if ! git show-ref --exists "refs/tags/$REF"; then
47
+ echo "::error ::Tag $REF does not exist, aborting."
48
+ exit 1
49
+ fi
50
+
51
VERSION=$(./mvnw --batch-mode --no-transfer-progress help:evaluate -Dexpression=project.version -q -DforceStdout)
52
echo "Determined VERSION=$VERSION"
53
if [[ "$VERSION" = *-SNAPSHOT ]]; then
0 commit comments