update/build.yaml
This commit is contained in:
parent
7fd69c23c5
commit
520133342e
|
|
@ -3,7 +3,7 @@ name: Build
|
|||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -19,6 +19,14 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
if: always() && github.event_name == 'pull_request'
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
if: always() && github.event_name != 'pull_request'
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in New Issue