Files
fish-config/.gitea/workflows/man-page.yml
T
rootiest 708627d2c6
Generate HTML docs / build-html-docs (push) Failing after 0s
Generate man page / build-manpage (push) Failing after 1s
ci: fix docs gen again
2026-06-08 11:09:27 -04:00

38 lines
937 B
YAML

name: Generate man page
on:
push:
branches:
- main
paths:
- "docs/fish-config.md"
jobs:
build-manpage:
runs-on: preferred
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITEA_TOKEN }}
- name: Install pandoc
run: apt-get update -qq && apt-get install -y pandoc
- name: Compile man page
run: |
pandoc --standalone \
--from markdown \
--to man \
docs/fish-config.md \
-o docs/fish-config.1
- name: Commit man page
run: |
git config user.name "Gitea Actions"
git config user.email "actions@gitea"
git add docs/fish-config.1
git diff --cached --quiet && echo "No changes to commit" && exit 0
git commit -m "chore(docs): regenerate fish-config.1 man page"
git push