Skip to content

Commit

Permalink
Tag name comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
phavekes committed Jun 27, 2023
1 parent 13f8e19 commit 084724f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
id: project
- name: Check if git tag matches project version
run: |
echo "Project version ${{ steps.project.outputs.version }} does not match git tag ${{ github.ref }}"
echo "Project version ${{ steps.project.outputs.version }} does not match git tag ${{ github.ref_name }}"
exit 1
if: ${{ steps.project.outputs.version }} != ${{ github.ref }}
if: ${{ steps.project.outputs.version != github.ref_name }}

- name: Deploy with Maven
run: mvn --batch-mode deploy -DskipTests
env:
Expand All @@ -55,8 +55,8 @@ jobs:
with:
draft: false
prerelease: true
release_name: Release ${{ github.ref }}
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body: |
${{ steps.changelog.outputs.changelog }}
env:
Expand Down

0 comments on commit 084724f

Please sign in to comment.