Piped/.github/workflows/weblate-merge.yml

22 lines
547 B
YAML
Raw Normal View History

2022-11-10 17:28:44 +00:00
name: Merge Weblate translations
on:
pull_request:
2022-11-10 17:33:40 +00:00
types: [opened, reopened]
2022-11-10 17:28:44 +00:00
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
2022-11-10 17:35:36 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}