mirror of
https://github.com/gofiber/storage.git
synced 2025-09-27 21:02:20 +08:00
Compare commits
2 Commits
sqlite3/v1
...
bbolt/v1.3
Author | SHA1 | Date | |
---|---|---|---|
![]() |
98bebea186 | ||
![]() |
56a4cbfc19 |
19
.github/scripts/sync_docs.sh
vendored
19
.github/scripts/sync_docs.sh
vendored
@@ -60,4 +60,21 @@ if [[ $EVENT == "push" ]]; then
|
||||
elif [[ $EVENT == "release" ]]; then
|
||||
git commit -m "Sync docs for release ${COMMIT_URL}/releases/tag/${TAG_NAME}"
|
||||
fi
|
||||
git push https://${TOKEN}@${REPO_URL}
|
||||
|
||||
MAX_RETRIES=5
|
||||
DELAY=5
|
||||
retry=0
|
||||
|
||||
while ((retry < MAX_RETRIES))
|
||||
do
|
||||
git push https://${TOKEN}@${REPO_URL} && break
|
||||
retry=$((retry + 1))
|
||||
git pull --rebase
|
||||
sleep $DELAY
|
||||
done
|
||||
|
||||
if ((retry == MAX_RETRIES))
|
||||
then
|
||||
echo "Failed to push after $MAX_RETRIES attempts. Exiting with 1."
|
||||
exit 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user