[ci,abi] only check out pull request on trigger
This commit is contained in:
parent
c61fc2a0fa
commit
6b5ed8e36a
8
.github/workflows/abi-checker.yml
vendored
8
.github/workflows/abi-checker.yml
vendored
@ -15,9 +15,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
name: "Run ABI checker on ubuntu-latest"
|
||||
steps:
|
||||
- uses: suzuki-shunsuke/get-pr-action@v0.1.0
|
||||
- name: "Check out pull request"
|
||||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event_name == 'pull_request_target' }}
|
||||
uses: suzuki-shunsuke/get-pr-action@v0.1.0
|
||||
id: pr
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Check out source"
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{steps.pr.outputs.merge_commit_sha}}
|
||||
|
Loading…
Reference in New Issue
Block a user