actions: don't auto merge if en.json was updated

This commit is contained in:
Kavin 2023-05-01 08:57:56 +01:00
parent 5d439680ac
commit 7cbda4c484
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -8,6 +8,12 @@ jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check if en.json has been updated
run: |
if -n git diff ${{ github.event.pull_request.base.sha }}..${{ github.sha }} src/locales/en.json; then
exit 1
fi
- name: AutoMerge Weblate translations
if: github.event.pull_request.user.login == 'weblate'
run: gh pr merge --auto --delete-branch --merge "$PR_URL"