summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-08 01:45:19 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-08 01:45:19 +0200
commit0074f14ec3157510c23e21985b64cce7cd9f12d6 (patch)
treef8373bddfac9884f17186966f9d19a10da3355d1
parentStart using envvar module. (diff)
downloadprofiles-0074f14ec3157510c23e21985b64cce7cd9f12d6.tar.gz
profiles-0074f14ec3157510c23e21985b64cce7cd9f12d6.tar.xz
Add githook for updating description from metadata.json.
-rwxr-xr-x.githooks/post-receive.d/description-from-puppet-metadata5
1 files changed, 5 insertions, 0 deletions
diff --git a/.githooks/post-receive.d/description-from-puppet-metadata b/.githooks/post-receive.d/description-from-puppet-metadata
new file mode 100755
index 0000000..0f34380
--- /dev/null
+++ b/.githooks/post-receive.d/description-from-puppet-metadata
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+git show HEAD:metadata.json | jq -r '.summary' > description