Skip to content

Commit

Permalink
213
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Sep 26, 2024
1 parent 0c892e5 commit 3cd2762
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/change-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:
git commit -m "Update version to ${{ env.TAG_VERSION }}"
git push origin ${{ env.BRANCH_NAME }}
# Step 5: Create and push tag
# Step 5: Check if tag exists and delete if it does
- name: Check and delete existing tag
run: |
if git rev-parse ${{ env.TAG_VERSION }} >/dev/null 2>&1; then
git tag -d ${{ env.TAG_VERSION }}
git push --delete origin ${{ env.TAG_VERSION }}
fi
# Step 6: Create and push tag
- name: Create and push tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3cd2762

Please sign in to comment.