mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
fix: keep snapshot flake update branch-only
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -198,6 +198,8 @@
|
||||
cp -r artifacts/usr/lib $out/lib
|
||||
fi
|
||||
|
||||
install -Dm755 ${gpgui}/gpgui $out/bin/gpgui
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user