Skip to content

Commit 364fcca

Browse files
committed
fix: specify -X GET in gh api call (#35536)
The `-f` flag causes `gh api` to default to POST. The releases endpoint expects GET, so we need to specify the method explicitly. Same fix as leanprover/cslib#354. 🤖 Prepared with Claude Code
1 parent ba56760 commit 364fcca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/nightly_bump_and_merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
env:
6363
GH_TOKEN: ${{ steps.app-token.outputs.token }}
6464
run: |
65-
RELEASE_TAG=$(gh api repos/leanprover/lean4-nightly/releases \
65+
RELEASE_TAG=$(gh api -X GET repos/leanprover/lean4-nightly/releases \
6666
-f per_page=1 --jq '.[0].tag_name')
6767
if [ -z "$RELEASE_TAG" ] || [ "$RELEASE_TAG" = "null" ]; then
6868
echo "::error::Could not determine latest lean4-nightly release"

0 commit comments

Comments
 (0)