diff --git a/.gitea/workflows/handy-update.yml b/.gitea/workflows/handy-update.yml index ae45eed..ab23e6b 100644 --- a/.gitea/workflows/handy-update.yml +++ b/.gitea/workflows/handy-update.yml @@ -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" \