Skip to content

ci: fetch the PR tip before reading ci-checks.sh from it - #183

Closed
ws-plaude wants to merge 1 commit into
bwk-bitcoin:masterfrom
ws-plaude:ci-fetch-pr-tip
Closed

ws-plaude wants to merge 1 commit into
bwk-bitcoin:masterfrom
ws-plaude:ci-fetch-pr-tip

Conversation

@ws-plaude

Copy link
Copy Markdown
Collaborator

The per-commit jobs in test-each-commit.yml fail on every PR from a fork:

fatal: path 'scripts/ci-checks.sh' exists on disk, but not in '<head sha>'

Each job checks out an intermediate commit, then reads scripts/ci-checks.sh from the PR tip with git show <head sha>:.... For a PR from a fork, actions/checkout does not fetch the tip commit, so git show cannot find it. PRs from branches of this repo pass, which is why only fork PRs fail (#172, #176, #177, #179).

This fetches the tip commit by its sha before reading from it, in the five "Stage ci-checks.sh from PR tip" steps.

@pythcoiner pythcoiner closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants