mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 10:20:02 +07:00
From time to time transifex pull requests are piling up. I assume we are low on runners because transifex creates a lot of pull requests within a short timeframe. 1) Set a dependency for approve 2) Increase the timeout to 120 seconds Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
27 lines
661 B
YAML
27 lines
661 B
YAML
name: AutoMerge Transifex Pull Requests
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
approve:
|
|
runs-on: ubuntu-latest
|
|
name: Approve
|
|
steps:
|
|
- uses: hmarr/auto-approve-action@v3.2.1
|
|
if: github.actor == 'transifex-integration[bot]'
|
|
with:
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automerge:
|
|
runs-on: ubuntu-latest
|
|
name: Auto-merge
|
|
needs: approve
|
|
steps:
|
|
- uses: pascalgn/automerge-action@v0.15.6
|
|
if: github.actor == 'transifex-integration[bot]'
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
MERGE_LABELS: ""
|
|
MERGE_RETRIES: 10
|
|
MERGE_RETRY_SLEEP: 120000
|