fix: keep snapshot flake update branch-only

This commit is contained in:
Kevin Yue committed 2026-06-23 07:33:13 +08:00
1 parent 96e25eb408
commit 352a2efb35
2 files changed
+7

No files matched your search

+2
View File
@@ -198,6 +198,8 @@
cp -r artifacts/usr/lib $out/lib
fi
install -Dm755 ${gpgui}/gpgui $out/bin/gpgui
runHook postInstall
'';
};
+5
View File
@@ -38,6 +38,11 @@ git add flake.nix
git commit -m "$title"
git push --force-with-lease origin "$branch"
if [[ "$release_tag" == "snapshot" ]]; then
echo "Updated snapshot flake hashes on branch $branch; skipping PR creation"
exit 0
fi
if gh pr view "$branch" --json number > /tmp/flake-pr.json 2> /dev/null; then
pr_number="$(jq -r '.number' /tmp/flake-pr.json)"
gh pr edit "$pr_number" --title "$title" --body "$body"