Another attempt to fix l10n bot.

Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
This commit is contained in:
Pierre Ozoux
2022-06-01 18:28:40 +02:00
parent 1b35a86c36
commit 216e8bcfe4
2 changed files with 17 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
name: L10n
name: Generate catalog templates (POT) files fetched automatically by transifex
on:
push:
branches:
@@ -23,3 +23,16 @@ jobs:
title: l10n
branch: update-l10n
signoff: true
- uses: pascalgn/automerge-action@v0.15.3
if: steps.cpr.outputs.pull-request-operation == 'created'
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: ""
MERGE_RETRIES: 10
MERGE_RETRY_SLEEP: 60000
PULL_REQUEST: ${{ github.event.inputs.pull-request-number }}
- uses: hmarr/auto-approve-action@v2.2.1
if: steps.cpr.outputs.pull-request-operation == 'created'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
pull-request-number: ${{ github.event.inputs.pull-request-number }}

View File

@@ -1,4 +1,4 @@
name: AutoMerge everything translations (Transifex and pot files update)
name: AutoMerge Transifex Pull Requests
on: pull_request
jobs:
@@ -7,7 +7,7 @@ jobs:
name: Approve
steps:
- uses: hmarr/auto-approve-action@v2.2.1
if: github.actor == 'github-actions[bot]' || github.actor == 'transifex-integration[bot]'
if: github.actor == 'transifex-integration[bot]'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -16,7 +16,7 @@ jobs:
name: Auto-merge
steps:
- uses: pascalgn/automerge-action@v0.15.3
if: github.actor == 'github-actions[bot]' || github.actor == 'transifex-integration[bot]'
if: github.actor == 'transifex-integration[bot]'
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: ""