Skip to content

Commit 63c255c

Browse files
sensei-hackerclaude
andcommitted
CI: fix pr-test-builds release creation failing with target_commitish error
The --target flag was passing the inav commit SHA to gh release create in iNavFlight/pr-test-builds. That SHA does not exist in that repo so GitHub rejected it with HTTP 422 "Release.target_commitish is invalid". Remove --target so the release is anchored to the default branch (main) of pr-test-builds, which is the correct behaviour for a binary hosting repo. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c7edbc3 commit 63c255c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

.github/workflows/pr-test-builds.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
PR_NUMBER: ${{ steps.pr.outputs.number }}
8282
SHORT_SHA: ${{ steps.info.outputs.short_sha }}
8383
HEX_COUNT: ${{ steps.info.outputs.count }}
84-
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
8584
REPO: ${{ github.repository }}
8685
run: |
8786
PR_URL="https://github.com/${REPO}/pull/${PR_NUMBER}"
@@ -93,7 +92,6 @@ jobs:
9392
gh release create "pr-${PR_NUMBER}" hexes/*.hex \
9493
--repo iNavFlight/pr-test-builds \
9594
--prerelease \
96-
--target "${HEAD_SHA}" \
9795
--title "PR #${PR_NUMBER} (${SHORT_SHA})" \
9896
--notes-file release-notes.md
9997

0 commit comments

Comments
 (0)