Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/reusable-create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,15 @@ jobs:
run: |
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
- name: Check if Tag Already Exists
id: check-tag
- name: Delete Existing Tag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if git ls-remote --tags origin ${{ inputs.tag }} | grep -q ${{ inputs.tag }}; then
echo "exists=1" >> "$GITHUB_OUTPUT"
fi
echo "Tag '${{ inputs.tag }}' already exists. Deleting it..."
git tag -d ${{ inputs.tag }} || echo "Local tag not found."
git push --delete origin ${{ inputs.tag }}
- name: Create Tag
if: ${{ steps.check-tag.outputs.exists == '1' }}
env:
GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
run: |
Expand Down
Loading