Use merge commit for fuzzing (#980)
This commit is contained in:
parent
62068ae828
commit
69a1cae606
14
.github/workflows/fuzz.yml
vendored
14
.github/workflows/fuzz.yml
vendored
@ -61,14 +61,22 @@ jobs:
|
||||
repository: "ziglang/zig"
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Checkout zls
|
||||
- name: Checkout zls (non-PR)
|
||||
if: github.event_name != 'pull_request_target'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: zls
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
|
||||
|
||||
- name: Checkout zls (PR)
|
||||
if: github.event_name == 'pull_request_target'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: zls
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
ref: "refs/pull/${{ github.event.number }}/merge"
|
||||
|
||||
- name: Build zls
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user