Skip to content

Commit

Permalink
chore(publish-cli): retry latest release command (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed May 10, 2024
1 parent 179a8bd commit 7565728
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions binaries/publish-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
set -eux

v=$(curl -s https://api.github.com/repos/prisma/prisma/releases/latest | jq -r .tag_name)
for i in {1..20}; do
if [ "$v" != "null" ]; then
break
fi
v=$(curl -s https://api.github.com/repos/prisma/prisma/releases/latest | jq -r .tag_name)
sleep $i
done

sh publish.sh "$v"

0 comments on commit 7565728

Please sign in to comment.