mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 03:20:01 +00:00
ci: fix checkout for PRs from forks
Use head repo and SHA when checking out pull_request events so the workflow can fetch the branch from the fork instead of the base repo. Fixes CI failure when patch-1 (or other fork branches) don't exist in the base repository. Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
This commit is contained in:
parent
30ea67bcd4
commit
eec5771ea1
1 changed files with 2 additions and 1 deletions
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
|
|
@ -14,7 +14,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref || github.ref_name }}
|
||||
ref: ${{ github.event.pull_request.head.sha || github.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: "Fail on type: ignore (no suppressions allowed)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue