Skip to content

Commit

Permalink
Tags might stop making my workflows error some day
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMoalic committed Oct 24, 2023
1 parent bc4a371 commit f70e597
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ jobs:
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git tag -f $TAG_NAME
git push origin $TAG_NAME
if ! git rev-parse $TAG_NAME >/dev/null 2>&1; then
git tag $TAG_NAME
git push origin $TAG_NAME
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit f70e597

Please sign in to comment.