From 314af1a5f637d1f91aa88b6cbf6f02c5bafacaac Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 28 Oct 2024 11:00:58 +0100 Subject: [PATCH] CI: Fix workflow not being able to update a pull-request should work now, though untested Signed-off-by: Knut Ahlers --- .github/workflows/pr-regen-translations.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-regen-translations.yml b/.github/workflows/pr-regen-translations.yml index 80d75cf..356a266 100644 --- a/.github/workflows/pr-regen-translations.yml +++ b/.github/workflows/pr-regen-translations.yml @@ -2,7 +2,12 @@ name: pull-request-ci on: - pull_request: + pull_request_target: + types: ["opened", "synchronize", "reopened", "labeled", "unlabeled"] + branches: ["main"] + +permissions: + contents: write jobs: generate-translations: @@ -18,12 +23,11 @@ jobs: runs-on: ubuntu-latest - permissions: - # required to push a commit - contents: write - steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Marking workdir safe run: git config --global --add safe.directory /__w/ots/ots