Files
nextcloud-docs/.github/workflows/generate_catalog_templates.yml
Ferdinand Thiessen 8a4a8bddee Merge pull request #14020 from nextcloud/dependabot/github_actions/actions/setup-python-6.2.0
chore(deps): Bump actions/setup-python from 6.1.0 to 6.2.0
2026-01-28 12:27:58 +01:00

64 lines
2.2 KiB
YAML

name: Generate catalog templates (POT) files fetched automatically by transifex
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'user_manual/**'
- '!user_manual/locale/**'
permissions:
contents: read
jobs:
user_manual:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.13'
- uses: ammaraskar/sphinx-action@54e52bfb642e9b60ea5b6bcb05fe3f74b40d290a # v8.2.3
with:
docs-folder: "user_manual/"
pre-build-command: "pip install -r requirements.txt"
build-command: "make gettext"
- name: Change file owner to correct user
run: |
ls -la user_manual/locale/source
sudo chown -R 1001:1001 user_manual/locale/source
ls -la user_manual/locale/source
- uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
id: cpr
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
commit-message: 'chore(l10n): Updates catalog templates (POT files fetched automatically by transifex)'
committer: GitHub <noreply@github.com>
author: nextcloud-command <nextcloud-command@users.noreply.github.com>
signoff: true
branch: 'automated/noid/update-l10n'
title: 'Updates catalog templates'
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # 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@7961b8b5eec56cc088c140b56d864285eabd3f67 # v0.16.4
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 }}