From 598a780e2e02eb2a574b06b49da9c831c4a7523e Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 10 Nov 2022 17:28:44 +0000 Subject: [PATCH] Add auto-merge for weblate. --- .github/workflows/weblate-merge.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/weblate-merge.yml diff --git a/.github/workflows/weblate-merge.yml b/.github/workflows/weblate-merge.yml new file mode 100644 index 00000000..fa523fdd --- /dev/null +++ b/.github/workflows/weblate-merge.yml @@ -0,0 +1,20 @@ +name: Merge Weblate translations + +on: + pull_request: + branches: + - weblate + +jobs: + merge: + runs-on: ubuntu-latest + steps: + # Run only if the PR is from Weblate + - name: Check if PR author is weblate + if: github.event.pull_request.user.login != 'weblate' + run: exit 78 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: AutoMerge Weblate translations + run: gh pr merge --auto --delete-branch --merge