update-clan-core-for-checks: use correct pr number

This commit is contained in:
Jörg Thalheim
2025-05-13 13:40:27 +02:00
parent 84c0c7e678
commit e0c407a8a3

View File

@@ -31,7 +31,7 @@ jobs:
"body": "This PR updates the pinned clan-core flake input that is used for checks." "body": "This PR updates the pinned clan-core flake input that is used for checks."
}' \ }' \
"https://git.clan.lol/api/v1/repos/clan/clan-core/pulls") "https://git.clan.lol/api/v1/repos/clan/clan-core/pulls")
pr_id=$(echo "$resp" | jq -r '.id') pr_number=$(echo "$resp" | jq -r '.number')
# Merge when succeed # Merge when succeed
nix run --inputs-from . nixpkgs#curl -- -X POST \ nix run --inputs-from . nixpkgs#curl -- -X POST \
@@ -42,4 +42,4 @@ jobs:
"merge_when_checks_succeed": true, "merge_when_checks_succeed": true,
"delete_branch_after_merge": true "delete_branch_after_merge": true
}' \ }' \
"https://git.clan.lol/api/v1/repos/clan/clan-core/pulls/$pr_id/merge" "https://git.clan.lol/api/v1/repos/clan/clan-core/pulls/$pr_number/merge"