From b580baf5ee57801464538c3c5d703972684cad58 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 21 Jun 2019 15:21:10 +0100 Subject: [PATCH] Add a "commit" field to the $:/build tiddler --- bin/build-site.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/build-site.sh b/bin/build-site.sh index 42f709c60..6f5794f04 100755 --- a/bin/build-site.sh +++ b/bin/build-site.sh @@ -32,6 +32,8 @@ if [ -z "$TW5_BUILD_DETAILS" ]; then TW5_BUILD_DETAILS="$(git symbolic-ref --short HEAD)-$(git rev-parse HEAD) from $(git remote get-url origin)" fi +TW5_BUILD_COMMIT="$(git rev-parse HEAD)" + echo "Using TW5_BUILD_DETAILS as [$TW5_BUILD_DETAILS]" # Set up the build output directory @@ -74,7 +76,7 @@ echo "Moved to http://tiddly # Put the build details into a .tid file so that it can be included in each build (deleted at the end of this script) -echo -e -n "title: $:/build\n\n$TW5_BUILD_DETAILS\n" > $TW5_BUILD_OUTPUT/build.tid +echo -e -n "title: $:/build\ncommit: $TW_BUILD_COMMIT\n\n$TW5_BUILD_DETAILS\n" > $TW5_BUILD_OUTPUT/build.tid ###################################################### #