update/build.yaml

This commit is contained in:
Enno Gelhaus 2025-10-01 10:42:59 +02:00 committed by GitHub
parent 7fd69c23c5
commit 520133342e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -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: