Debian Codegraph @

.github/workflows/enforce-copies-of-help-output-in-sync.yml

raw symbols SCIP
1 # Copyright (C) 2022 Sebastian Pipping <[email protected]>
2 # Licensed under GPL v3 or later
3
4 name: Enforce that copies of --help output are in sync
5
6 on:
7 - pull_request
8 - push
9
10 jobs:
11 run_pre_commit:
12 name: Check if copies of --help output are in sync
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
16
17 - name: Set up Python 3.14
18 uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
19 with:
20 python-version: 3.14
21
22 - name: Install build dependencies
23 run: |
24 sudo apt-get install --no-install-recommends -y help2man
25
26 - name: Install delete-merged-branches entry point script
27 run: |-
28 pip install \
29 --disable-pip-version-check \
30 --user \
31 --no-warn-script-location \
32 .
33 echo "PATH=${HOME}/.local/bin:${PATH}" >> "${GITHUB_ENV}"
34
35 - name: Check if the man page is in sync with --help output
36 run: |-
37 rm git-{delete-merged-branches,dmb}.1 # to enforce a diff for the generator to remove
38 ./sync-manpages-with-help-output.sh
39 git diff --exit-code -- git-{delete-merged-branches,dmb}.1