-
-
Notifications
You must be signed in to change notification settings - Fork 110
31 lines (26 loc) · 802 Bytes
/
pull_requests.yaml
File metadata and controls
31 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: CC0-1.0
# This file is maintained in https://github.com/WeblateOrg/meta/
name: Pull request automation
on: # zizmor: ignore[dangerous-triggers]
pull_request_target:
types: opened
permissions:
contents: read
jobs:
weblate_automerge:
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-24.04
name: Weblate automerge
if: github.actor == 'weblate'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Enable Pull Request Automerge
run: gh pr merge --rebase --auto "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.WEBLATE_CI_TOKEN }}