Skip to content

Commit b22c93b

Browse files
hartworkdavidpolverari
authored andcommitted
Make GitHub Actions enforce that the rendered man page remains in sync
1 parent 2a935a2 commit b22c93b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Enforce that man/dcfldd.1 remains in sync
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
- cron: '0 16 * * 5' # Every Friday 4pm
8+
workflow_dispatch:
9+
10+
# Drop permissions to minimum for security
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
man_page_in_sync:
16+
runs-on: ubuntu-24.04
17+
steps:
18+
19+
- uses: actions/checkout@v4
20+
21+
- name: Install build dependencies
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install --no-install-recommends --yes -V \
25+
txt2man
26+
27+
- name: Check man/dcfldd.1 for being in sync
28+
run: |
29+
set -x
30+
cd man/
31+
rm dcfldd.1 # so that create-man.sh has to close that very gap
32+
./create-man.sh
33+
git diff --exit-code # i.e. fail CI in case of a diff (and show it)

0 commit comments

Comments
 (0)