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
+5 -1
View File
@@ -50,7 +50,11 @@ jobs:
uses: actions/checkout@v4
with:
repository: bec/csaxs_bec
ref: "${{ inputs.BEC_PLUGIN_REPO_BRANCH || github.head_ref || github.sha }}"
# For pull_request events github.sha is the test-merge commit, which
# lives in the base repo, so this works for fork PRs too. Using
# github.head_ref here would try to fetch the fork's branch name from
# bec/csaxs_bec, where it does not exist -> checkout fails (exit 1).
ref: "${{ inputs.BEC_PLUGIN_REPO_BRANCH || github.sha }}"
path: ./csaxs_bec
- name: Lint for merge conflicts from template updates