We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 631aae3 + f0a5fa9 commit f98ee92Copy full SHA for f98ee92
scripts/publish-gh-pages.sh
@@ -40,4 +40,19 @@ git add ./README.md
40
COMMIT_MESSAGE='fix: :egg: Automatic Publish '${NEW_TAG}' :egg:'
41
git commit -m "${COMMIT_MESSAGE}"
42
git push --quiet --set-upstream origin-pages gh-pages
43
+
44
+# Wait up to 10 minutes for the new GH pages
45
+echo waiting for the new release to appear in github
46
+attempts=60
47
+sleep_time=10
48
+for (( i=0; i<${attempts}; i++ )); do
49
+ count=$(curl -s https://snyk.github.io/kubernetes-monitor/snyk-monitor/values.yaml | grep --line-buffered -c "tag: ${NEW_TAG}")
50
+ if [[ "$count" == "1" ]]; then
51
+ attempts=${i}
52
+ break
53
+ fi
54
+ sleep $sleep_time
55
+done
56
+echo it took github $(( $attempts * $sleep_time )) seconds to update the github pages
57
58
./scripts/slack-notify-push.sh "gh-pages"
0 commit comments