summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2020-01-01 00:00:00 +0100
committerVivien Kraus <vivien@planete-kraus.eu>2021-06-05 16:08:12 +0200
commit4f9d02b9b4c84d567709e0325642ac55e068a1ee (patch)
tree93e1b520f878b34da2a046cc3440fd9cec25157c /ci
parent0e29ddc3c41870e14da87770a429a94f80dd4110 (diff)
Set up the project infrastructure
Diffstat (limited to 'ci')
-rwxr-xr-xci7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci b/ci
new file mode 100755
index 0000000..84790af
--- /dev/null
+++ b/ci
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+ref=$(guix environment --ad-hoc --container git -- git symbolic-ref HEAD)
+commit=$(guix environment --ad-hoc --container git -- git rev-parse $ref)
+parent=$(guix environment --ad-hoc --container git -- git log --pretty=%P -n 1 $commit)
+
+./hooks/update $ref $parent $commit