mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/language-data.git
synced 2026-04-21 09:42:22 +08:00
29 lines
804 B
YAML
29 lines
804 B
YAML
# 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:
|
|
runs-on: ubuntu-slim
|
|
name: Weblate automerge
|
|
if: github.actor == 'weblate'
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Enable Pull Request Automerge
|
|
run: gh pr merge --rebase --auto "$PR_NUMBER"
|
|
env:
|
|
GH_TOKEN: ${{ secrets.WEBLATE_CI_TOKEN }} # zizmor: ignore[secrets-outside-env]
|
|
PR_NUMNBER: ${{ github.event.pull_request.number }}
|