Skip to content

Commit

Permalink
CI: Fix workflow not being able to update a pull-request
Browse files Browse the repository at this point in the history
should work now, though untested

Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Oct 28, 2024
1 parent 0049bc0 commit 314af1a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pr-regen-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 314af1a

Please sign in to comment.