Skip to content

Commit 084724f

Browse files
committed
Tag name comparison
1 parent 13f8e19 commit 084724f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
id: project
3636
- name: Check if git tag matches project version
3737
run: |
38-
echo "Project version ${{ steps.project.outputs.version }} does not match git tag ${{ github.ref }}"
38+
echo "Project version ${{ steps.project.outputs.version }} does not match git tag ${{ github.ref_name }}"
3939
exit 1
40-
if: ${{ steps.project.outputs.version }} != ${{ github.ref }}
41-
40+
if: ${{ steps.project.outputs.version != github.ref_name }}
41+
4242
- name: Deploy with Maven
4343
run: mvn --batch-mode deploy -DskipTests
4444
env:
@@ -55,8 +55,8 @@ jobs:
5555
with:
5656
draft: false
5757
prerelease: true
58-
release_name: Release ${{ github.ref }}
59-
tag_name: ${{ github.ref }}
58+
release_name: Release ${{ github.ref_name }}
59+
tag_name: ${{ github.ref_name }}
6060
body: |
6161
${{ steps.changelog.outputs.changelog }}
6262
env:

0 commit comments

Comments
 (0)