3 on: [pull_request, push]
8 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9 cancel-in-progress: ${{ github.head_ref != '' }}
14 runs-on: ubuntu-latest
16 - name: Checkout repository
17 uses: actions/checkout@v4
20 uses: actions/setup-python@v5
25 uses: pre-commit/action@v3.0.1
29 pandoc_path: "${{ github.workspace }}/../pandoc"
34 -o "${{ runner.temp }}/pandoc.tar.gz" \
35 "https://github.com/jgm/pandoc/releases/download/3.1.7/pandoc-3.1.7-linux-amd64.tar.gz"
36 tar -xf "${{ runner.temp }}/pandoc.tar.gz" -C "${{ github.workspace }}/.."
37 mv "${{ github.workspace }}/.."/pandoc-* "${{ env.pandoc_path }}"
39 for lang in doc/*/; do
40 "${{ env.pandoc_path }}/bin/pandoc" -f markdown -t man -s "$lang/qbittorrent.1.md" -o "$lang/qbittorrent.1"
41 "${{ env.pandoc_path }}/bin/pandoc" -f markdown -t man -s "$lang/qbittorrent-nox.1.md" -o "$lang/qbittorrent-nox.1"
43 # check diff, ignore "Automatically generated by ..." part
44 git diff -I '\.\\".*' --exit-code