Added github actions for performing releases (#713)
* Added github actions for performing releases
* Regenerate documentation
* Handle documentation updates
* Updated sha256 check
* Added warning to rendered version.bzl files
diff --git a/docs/update_docs.sh b/docs/update_docs.sh
index d43d85a..94890eb 100755
--- a/docs/update_docs.sh
+++ b/docs/update_docs.sh
@@ -15,8 +15,10 @@
bazel clean \
&& bazel build //... \
&& cp bazel-bin/*.md . \
-&& chmod 0644 *.md \
-&& git add *.md \
-&& git commit -m "Regenerate documentation"
-popd &> /dev/null
+&& chmod 0644 *.md
+if [[ -z "${SKIP_COMMIT:-}" ]]; then
+ git add *.md && git commit -m "Regenerate documentation"
+fi
+
+popd &> /dev/null