Skip to content

Commit 78ce3a9

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
RELEASE_ID=$(gh release view v${{ env.VERSION }} --json id -q '.id' || echo "")
3939
if [ -n "$RELEASE_ID" ]; then
4040
echo "Deleting existing release..."
41-
gh release delete v${{ env.VERSION }} --yes
41+
gh release delete ${{ env.VERSION }} --yes
4242
fi
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -48,7 +48,7 @@ jobs:
4848
if git rev-parse "v${{ env.VERSION }}" >/dev/null 2>&1; then
4949
echo "Deleting existing tag..."
5050
git tag -d v${{ env.VERSION }}
51-
git push origin :refs/tags/v${{ env.VERSION }}
51+
git push origin :refs/tags/${{ env.VERSION }}
5252
fi
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)