From ff3e562a758691ba47b1cdb16dc6b80e17366693 Mon Sep 17 00:00:00 2001 From: rikkarth Date: Fri, 8 Dec 2023 17:47:44 +0000 Subject: [PATCH] maven.yml Update --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8477dc8..8105991 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -51,11 +51,11 @@ jobs: run: | VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) echo "Creating release for version $VERSION" - git tag -a "v$VERSION" -m "Release $VERSION" + git tag -a "$VERSION" -m "Release $VERSION" git push origin "$VERSION" publish: - if: github.repository == 'refs/heads/main' + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: contents: read