Update failing close-translation-prs workflow

- Permissions for GITHUB_TOKEN is read only for PRs for forks from non-maintainers/collaborators
- Run workflow in context of PR base
This commit is contained in:
MoojMidge 2024-04-08 18:08:05 +10:00
parent 86a99e59cf
commit fdfc943b45

View file

@ -1,7 +1,7 @@
name: Close Translation Pull Requests
on:
pull_request:
pull_request_target:
branches: [ master, main, dev ]
jobs:
@ -42,11 +42,10 @@ jobs:
echo ::set-output name=close::${CLOSE}
- name: Comment on the PR
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
if: ${{ steps.check.outputs.close }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]'
allow-repeats: true
message: |
A modified strings.po file was detected.