mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Add auto-merge for weblate.
This commit is contained in:
parent
b57676e6cf
commit
598a780e2e
1 changed files with 20 additions and 0 deletions
20
.github/workflows/weblate-merge.yml
vendored
Normal file
20
.github/workflows/weblate-merge.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Merge Weblate translations
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- weblate
|
||||
|
||||
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
|
Loading…
Reference in a new issue