diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-08 01:45:19 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-08 01:45:19 +0200 |
commit | 0074f14ec3157510c23e21985b64cce7cd9f12d6 (patch) | |
tree | f8373bddfac9884f17186966f9d19a10da3355d1 | |
parent | Start using envvar module. (diff) | |
download | profiles-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-metadata | 5 |
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 |