[GHA] Permit rebuild from forks (#18699)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
pull/18701/head
Holger Friedrich 2025-05-19 09:23:53 +02:00 committed by GitHub
parent d33d2dbac2
commit 248c4643ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@
name: Rebuild PR
on:
pull_request:
pull_request_target:
types: [labeled]
workflow_dispatch:
inputs:
@ -52,12 +52,15 @@ jobs:
- name: Checkout
if: ${{ github.head_ref == '' && env.LABEL == 'rebuild' }}
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Checkout merge
if: ${{ github.head_ref != '' && env.LABEL == 'rebuild' }}
uses: actions/checkout@v4
with:
ref: refs/pull/${{github.event.pull_request.number}}/merge
persist-credentials: false
- name: List Jobs
if: ${{ env.LABEL == 'rebuild' }}