We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a071b commit eaf59f2Copy full SHA for eaf59f2
.github/update.sh
@@ -1,12 +1,20 @@
1
#!/usr/bin/env bash
2
3
-git switch -C main-next-wip
+set -x
4
+set -euo pipefail
5
+
6
+git fetch --all
7
+git switch main-next-wip
8
+OLDREV="$(git rev-parse main-next-wip)"
9
10
git reset --hard origin/main
-git push origin HEAD -f
11
12
nix flake update --commit-lock-file
13
-# TODO(colemickens): confirm this puts nix flake inputs into cache?
-nix flake archive
14
+if git diff --exit-code HEAD origin/main-next-wip -- flake.lock; then
15
+ echo "no material flake.lock diff"
16
+ echo "abandoning"
17
+ exit 0
18
+fi
19
20
git push --set-upstream origin main-next-wip
0 commit comments