Files
nextcloud-docs/.github/workflows/generate_catalog_templates.yml
Joas Schilling 176e9e97b3 ci: Fix owner of files before checking out
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-02-12 13:23:54 +01:00

61 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/**'
jobs:
user_manual:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.13'
- uses: ammaraskar/sphinx-action@df895b1e03f7f920991e8bd910e4b1f566cd1863 # v8.1.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@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
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 }}