Skip to content

Commit 9dadb11

Browse files
committed
[ACS-9977]: [publish] automatic tag creation work
1 parent 106d6d7 commit 9dadb11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,9 @@ jobs:
211211
- name: "Create release tag"
212212
if: success() && steps.publish.outcome == 'success'
213213
run: |
214-
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
214+
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')
215+
ARTIFACT_ID=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)
215216
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
216217
git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}"
217-
git tag "$VERSION"
218-
git push origin "$VERSION"
218+
git tag "$ARTIFACT_ID"-"$VERSION"
219+
git push origin "$ARTIFACT_ID"-"$VERSION"

0 commit comments

Comments
 (0)