From 520133342ef33d34c69454d4551380beb636ec53 Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Wed, 1 Oct 2025 10:42:59 +0200 Subject: [PATCH] update/build.yaml --- .github/workflows/build.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f12b7ac3..0005fd72 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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: