Merge pull request #11979 from nextcloud/feat/11976/document-outbox-s… #242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate catalog templates (POT) files fetched automatically by transifex | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- 'user_manual/**' | |
- '!user_manual/locale/**' | |
jobs: | |
user_manual: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- uses: ammaraskar/sphinx-action@master | |
with: | |
docs-folder: "user_manual/" | |
pre-build-command: pip install -r requirements.txt | |
build-command: make gettext | |
- uses: peter-evans/create-pull-request@v6 | |
id: cpr | |
with: | |
token: ${{ secrets.COMMAND_BOT_PAT }} | |
commit-message: "chore(l10n): Updates catalog templates (POT files fetched automatically by transifex)" | |
title: Updates catalog templates | |
branch: update-l10n | |
signoff: true | |
- uses: hmarr/auto-approve-action@v4.0.0 | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | |
- uses: pascalgn/automerge-action@v0.16.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: ${{ steps.cpr.outputs.pull-request-number }} |