From 7cbda4c4849157f4b9fa5e9668fa2c2aad9ff3da Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 1 May 2023 08:57:56 +0100 Subject: [PATCH] actions: don't auto merge if en.json was updated --- .github/workflows/weblate-merge.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/weblate-merge.yml b/.github/workflows/weblate-merge.yml index e5bedee1..3643693d 100644 --- a/.github/workflows/weblate-merge.yml +++ b/.github/workflows/weblate-merge.yml @@ -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"