ci: fix plugin checkout for fork pull requests #245

Merged
menzel merged 1 commits from ci/fix-fork-checkout into main 2026-07-03 14:32:34 +02:00
1 Commits
Author SHA1 Message Date
menzelandClaude Opus 4.8 a4e7e8bd5c ci: fix plugin checkout for fork pull requests
CI for csaxs_bec / test (pull_request) Successful in 1m30s
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m34s
The 'Checkout BEC Plugin Repository' step pinned repository to bec/csaxs_bec
with ref github.head_ref. For a pull request opened from a fork, head_ref is
the fork's branch name, which does not exist in the base repo, so the checkout
failed with 'git ... exit code 1' before any tests ran.

Fall through to github.sha instead: on pull_request events that is the
test-merge commit, which lives in the base repo, so the checkout succeeds for
fork PRs and in-repo branches alike (and gates on the merged result).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 14:28:39 +02:00