Skip to content

Commit

Permalink
Fix the push tag failure step to only run when failed to push tag
Browse files Browse the repository at this point in the history
  • Loading branch information
WiNloSt committed May 16, 2024
1 parent 46c0ee9 commit 78650e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-embedding-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ jobs:
git tag ${{ env.tag }}
- name: Push the new tag
id : push-tag
run: |
git push origin ${{ env.tag }}
- if: failure()
- if: ${{ steps.push-tag.outcome == 'failure' }}
run: echo "Tag '${{ env.tag }}' already exists. If you expect to run this workflow with the same tag, please remove the tag first and rerun this workflow again."

test:
Expand Down

0 comments on commit 78650e3

Please sign in to comment.