Merge pull request #4670 from libre-tube/auto-merge-weblate

chore: automatically merge weblate PRs
This commit is contained in:
Bnyro 2023-08-30 18:25:49 +02:00 committed by GitHub
commit 027effa709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}