ci: fix plugin checkout for fork pull requests #245
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user