Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Moors authored and Dirk Moors committed Jan 23, 2025
1 parent 730bcdd commit c728338
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/publish-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,24 @@ jobs:
id: check_tag
run: |
if git rev-parse "v${{ env.version }}" >/dev/null 2>&1; then
echo "::set-output name=tag_exists::true"
echo "Tag Exists!"
echo "TAG_EXISTS=1" >> $GITHUB_ENV
else
echo "::set-output name=tag_exists::false"
echo "Tag does not exist!"
echo "TAG_EXISTS=0" >> $GITHUB_ENV
fi
- name: DEBUG
run: |
echo "TAG_EXISTS=$TAG_EXISTS"
- name: Delete existing Git tag (if exists)
if: steps.check_tag.outputs.tag_exists == 'true'
if: env.TAG_EXISTS == '1'
run: |
git tag -d "v${{ env.version }}"
git push origin --delete "v${{ env.version }}"
env:
TAG_EXISTS: ${{ env.TAG_EXISTS }}

- name: Create Git tag
run: |
Expand Down

0 comments on commit c728338

Please sign in to comment.