add debug output to pr creation

This commit is contained in:
2026-03-09 17:14:54 +00:00
parent 76584c4983
commit 1b63847315
+4 -2
View File
@@ -98,7 +98,8 @@ jobs:
api="https://gitea.unrail.xyz/api/v1/repos/thomas/nixos-config"
branch="bot/handy-${{ steps.update.outputs.version }}"
existing=$(curl -fsS \
echo "Checking for existing PRs..."
existing=$(curl -sS \
-H "Authorization: token ${GITEA_TOKEN}" \
"${api}/pulls?state=open" \
| python -c 'import json,sys; d=json.load(sys.stdin); b="'"$branch"'"; print(next((str(pr["number"]) for pr in d if pr.get("head",{}).get("ref")==b), ""))')
@@ -108,7 +109,8 @@ jobs:
exit 0
fi
curl -fsS -X POST \
echo "Creating PR..."
curl -sS -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
"${api}/pulls" \