Skip to content

Commit 16f61a6

Browse files
committed
chore: add validation for tag and project version
Signed-off-by: Adrien Mannocci <[email protected]>
1 parent 7c29217 commit 16f61a6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
uses: ./.github/workflows/validate-tag
3232
with:
3333
tag: v${{ env.RELEASE_VERSION }}
34+
- name: Validate tag match current version
35+
run: |
36+
if [ "$(mvn -q help:evaluate -Dexpression=project.version -DforceStdout)" != "${{ env.RELEASE_VERSION }}" ]; then
37+
echo "Tag should match pom.xml project.version"
38+
exit 1
39+
fi
3440
3541
release:
3642
name: Release

.mvn/maven.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
-V
21
-B
32
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
43
-Dhttps.protocols=TLSv1.2

0 commit comments

Comments
 (0)