mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
23 lines
615 B
YAML
23 lines
615 B
YAML
name: Merge Weblate translations
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened]
|
|
|
|
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 "$PR_URL"
|
|
env:
|
|
PR_URL: ${{github.event.pull_request.html_url}}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|