build: Update weblate auto merge
This commit is contained in:
parent
6fc66b912b
commit
72f8dadce8
1 changed files with 13 additions and 8 deletions
21
.github/workflows/weblate_auto_merge.yaml
vendored
21
.github/workflows/weblate_auto_merge.yaml
vendored
|
|
@ -4,17 +4,22 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, reopened]
|
types: [opened, reopened]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
automerge:
|
automerge:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
if: github.actor == 'weblate'
|
if: github.actor == 'weblate'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Approve
|
||||||
uses: actions/checkout@v4
|
run: gh pr review --approve "$PR_URL"
|
||||||
- name: Enable Pull Request Automerge
|
|
||||||
run: gh pr merge --merge --auto "1"
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
- name: Enable auto-merge
|
||||||
|
run: gh pr merge --auto --rebase "$PR_URL"
|
||||||
|
env:
|
||||||
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue