Skip to content

Commit 8625f7f

Browse files
authored
Update maven-publish.yml
1 parent 78ce3a9 commit 8625f7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Delete existing GitHub release (if exists)
3737
run: |
38-
RELEASE_ID=$(gh release view v${{ env.VERSION }} --json id -q '.id' || echo "")
38+
RELEASE_ID=$(gh release view ${{ env.VERSION }} --json id -q '.id' || echo "")
3939
if [ -n "$RELEASE_ID" ]; then
4040
echo "Deleting existing release..."
4141
gh release delete ${{ env.VERSION }} --yes
@@ -45,9 +45,9 @@ jobs:
4545

4646
- name: Delete existing tag (if exists)
4747
run: |
48-
if git rev-parse "v${{ env.VERSION }}" >/dev/null 2>&1; then
48+
if git rev-parse "${{ env.VERSION }}" >/dev/null 2>&1; then
4949
echo "Deleting existing tag..."
50-
git tag -d v${{ env.VERSION }}
50+
git tag -d ${{ env.VERSION }}
5151
git push origin :refs/tags/${{ env.VERSION }}
5252
fi
5353
env:
@@ -61,8 +61,8 @@ jobs:
6161
- name: Create GitHub Release
6262
uses: softprops/action-gh-release@v1
6363
with:
64-
tag_name: v${{ env.VERSION }}
65-
name: Release v${{ env.VERSION }}
64+
tag_name: ${{ env.VERSION }}
65+
name: Release ${{ env.VERSION }}
6666
draft: false
6767
prerelease: false
6868
files: |

0 commit comments

Comments
 (0)