From b72ac0110cb1b3892c9d0f4830c226293cff8f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20G=C3=BCnther?= Date: Wed, 8 Mar 2023 12:48:08 +0100 Subject: [PATCH] TASK: Make add label workfow run on forks --- .github/workflows/add-pr-labels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add-pr-labels.yml b/.github/workflows/add-pr-labels.yml index 51fba7b60cf..1c492a3dd09 100644 --- a/.github/workflows/add-pr-labels.yml +++ b/.github/workflows/add-pr-labels.yml @@ -1,7 +1,7 @@ name: Add Labels to Pull Request on: - pull_request: + pull_request_target: types: [opened, reopened, synchronize, edited] jobs: @@ -10,6 +10,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Maybe remove base branch label if: github.event.action == 'edited' && github.event.changes.base.ref.from != '' uses: actions-ecosystem/action-remove-labels@v1