mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
actions: don't auto merge if en.json was updated
This commit is contained in:
parent
5d439680ac
commit
7cbda4c484
1 changed files with 6 additions and 0 deletions
6
.github/workflows/weblate-merge.yml
vendored
6
.github/workflows/weblate-merge.yml
vendored
|
@ -8,6 +8,12 @@ jobs:
|
||||||
merge:
|
merge:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: AutoMerge Weblate translations
|
||||||
if: github.event.pull_request.user.login == 'weblate'
|
if: github.event.pull_request.user.login == 'weblate'
|
||||||
run: gh pr merge --auto --delete-branch --merge "$PR_URL"
|
run: gh pr merge --auto --delete-branch --merge "$PR_URL"
|
||||||
|
|
Loading…
Reference in a new issue