mirror of
https://github.com/gofiber/storage.git
synced 2025-09-29 22:02:21 +08:00
Compare commits
1 Commits
etcd/v1.0.
...
couchbase/
Author | SHA1 | Date | |
---|---|---|---|
![]() |
98bebea186 |
20
.github/scripts/sync_docs.sh
vendored
20
.github/scripts/sync_docs.sh
vendored
@@ -60,5 +60,21 @@ if [[ $EVENT == "push" ]]; then
|
|||||||
elif [[ $EVENT == "release" ]]; then
|
elif [[ $EVENT == "release" ]]; then
|
||||||
git commit -m "Sync docs for release ${COMMIT_URL}/releases/tag/${TAG_NAME}"
|
git commit -m "Sync docs for release ${COMMIT_URL}/releases/tag/${TAG_NAME}"
|
||||||
fi
|
fi
|
||||||
git pull
|
|
||||||
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