File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,29 @@ writeShellApplication {
41
41
fi
42
42
}
43
43
44
+ versionInfo() {
45
+ nix-build ./update-scripts -A version-info
46
+ install -m 644 -T "$(realpath result)" ./version-info.toml
47
+ if [ -n "$commit" ]; then
48
+ git add version-info.toml
49
+ git commit "$@"
50
+ fi
51
+ }
52
+
53
+ # Initialise version-info.toml
54
+ if [ ! -f version-info.toml ]; then
55
+ echo "Creating version-info file"
56
+ versionInfo -m "version-info: init"
57
+ fi
58
+
44
59
# Update the root lockfile
45
60
old=$(git show --no-patch --format=%h)
46
61
echo "Updating root lockfile"
47
62
nix flake update "'' ${update_args[@]}"
48
63
new=$(git show --no-patch --format=%h)
49
64
if [ "$old" != "$new" ]; then
65
+ echo "Updating version-info"
66
+ versionInfo --amend --no-edit
50
67
writeGitHubOutput root_lock_body
51
68
fi
52
69
@@ -59,6 +76,8 @@ writeShellApplication {
59
76
--flake './flake/dev'
60
77
new=$(git show --no-patch --format=%h)
61
78
if [ "$old" != "$new" ]; then
79
+ echo "Updating version-info"
80
+ versionInfo --amend --no-edit
62
81
writeGitHubOutput dev_lock_body
63
82
fi
64
83
'' ;
You can’t perform that action at this time.
0 commit comments