LibreTube/.github/workflows/weblate-auto-merge.yml

19 lines
504 B
YAML
Raw Normal View History

2023-08-30 21:55:01 +05:30
name: Merge Weblate translations
on:
pull_request:
types: [opened, reopened]
jobs:
merge:
runs-on: ubuntu-latest
permissions: read-all|write-all
2023-08-30 21:55:01 +05:30
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 }}