name: Generate man page on: push: branches: - main paths: - 'docs/fish-config.md' jobs: build-manpage: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: token: ${{ secrets.GITEA_TOKEN }} - name: Install pandoc run: sudo apt-get update -qq && sudo 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