From 9dadb11fbb3d3c4c53ff2b5c88fe916ad36f4e9f Mon Sep 17 00:00:00 2001 From: vivekkr0311 Date: Fri, 8 Aug 2025 10:04:25 +0530 Subject: [PATCH] [ACS-9977]: [publish] automatic tag creation work --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4056c1f4..1972d2d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -211,8 +211,9 @@ jobs: - name: "Create release tag" if: success() && steps.publish.outcome == 'success' run: | - VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) + VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//') + ARTIFACT_ID=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout) git config --global user.name "${GIT_USERNAME:-github-actions[bot]}" git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}" - git tag "$VERSION" - git push origin "$VERSION" \ No newline at end of file + git tag "$ARTIFACT_ID"-"$VERSION" + git push origin "$ARTIFACT_ID"-"$VERSION" \ No newline at end of file