mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-12 21:30:27 +05:30
actions: don't auto merge if en.json was updated
This commit is contained in:
parent
5d439680ac
commit
7cbda4c484
6
.github/workflows/weblate-merge.yml
vendored
6
.github/workflows/weblate-merge.yml
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user