Skip to content

Commit

Permalink
Another attempt at fixing error on existing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed Sep 12, 2023
1 parent 328891f commit e6d9f07
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
- name: Zip the release
run: zip -r WebCalendar-${{ env.RELEASE_VERSION }}.zip WebCalendar-${{ env.RELEASE_VERSION }}/

- name: Check and Delete Existing Tag
run: |
# Check if the tag exists
if git rev-parse "v${{ env.RELEASE_VERSION }}" >/dev/null 2>&1; then
echo "Tag exists, deleting..."
git tag -d "v${{ env.RELEASE_VERSION }}"
git push --delete origin "v${{ env.RELEASE_VERSION }}"
fi
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit e6d9f07

Please sign in to comment.