Skip to content

Commit

Permalink
chore: fix bash error
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Aug 2, 2024
1 parent a42c78c commit 12a5251
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/ci/build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ echo "https://${ACCESS_TOKEN}:@github.com" > .git/credentials

if [[ $(git ls-remote origin "refs/tags/${buildTagName}") ]]; then
echo "removed tag because tag is already published"
git tag -d ${buildTagName}
git push --delete origin ${buildTagName}
git push origin :refs/tags/${buildTagName}
sleep 2
git tag -d ${buildTagName} || true
git push --delete origin ${buildTagName} || true
git push origin :refs/tags/${buildTagName} || true
sleep 5
fi

echo "Git configuration has been updated to match the last commit author. Publishing now.."
Expand Down

0 comments on commit 12a5251

Please sign in to comment.