From e47341e5975da1b82b4fe3e109e2d44ad86a4f41 Mon Sep 17 00:00:00 2001 From: Bnyro <82752168+Bnyro@users.noreply.github.com> Date: Wed, 30 Aug 2023 18:25:01 +0200 Subject: [PATCH] chore: automatically merge weblate PRs --- .github/workflows/weblate-auto-merge.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/weblate-auto-merge.yml diff --git a/.github/workflows/weblate-auto-merge.yml b/.github/workflows/weblate-auto-merge.yml new file mode 100644 index 0000000000..596adbc210 --- /dev/null +++ b/.github/workflows/weblate-auto-merge.yml @@ -0,0 +1,17 @@ +name: Merge Weblate translations + +on: + pull_request: + types: [opened, reopened] + +jobs: + merge: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: AutoMerge Weblate translations + if: github.event.pull_request.user.login == 'weblate' + run: gh pr merge --auto --delete-branch --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}