[Git][reproducible-builds/reproducible-website][master] bin/publish: Poll until page has been published.

Chris Lamb gitlab at salsa.debian.org
Tue Jan 29 15:13:50 CET 2019


Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website


Commits:
aa0fdaa4 by Chris Lamb at 2019-01-29T14:13:29Z
bin/publish: Poll until page has been published.

- - - - -


1 changed file:

- bin/publish


Changes:

=====================================
bin/publish
=====================================
@@ -56,8 +56,24 @@ then
 	done
 fi
 
+
+echo
+echo
+echo "After ensuring this has been published, Tweet this via:"
 echo
+echo "%tweet What happened in the @ReproBuilds effort between $(tr '\n' ' ' < "${FILENAME}" | sed -n -e 's at .* effort between \([^:]*\):.*@\1 at p'): https://reproducible-builds.org/blog/posts/${WEEK}/"
+echo
+printf "Waiting for page to be published "
+while :
+do
+	sleep 1
+	printf "."
+
+	if ! curl -qs "${URL}" | grep -qs "This is an unpublished draft post."
+	then
+		break
+	fi
+done
 echo
-echo "After ensuring this is 'live', Tweet this via:"
 echo
-echo "  %tweet What happened in the @ReproBuilds effort between $(tr '\n' ' ' < "${FILENAME}" | sed -n -e 's at .* effort between \([^:]*\):.*@\1 at p'): https://reproducible-builds.org/blog/posts/${WEEK}/"
+echo "${URL} has been published"



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/aa0fdaa41ec5d59e74f786dbfc73a729e5e00f89

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/aa0fdaa41ec5d59e74f786dbfc73a729e5e00f89
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190129/4b231977/attachment.html>


More information about the rb-commits mailing list