-
Notifications
You must be signed in to change notification settings - Fork 84
55 lines (44 loc) · 1.35 KB
/
generate_manpage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Generate Manpages
on:
pull_request:
branches:
- main
jobs:
generate-manpages:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install argparse-manpage
pip install six
pip install pexpect
pip install rpm
- name: Install python3-rpm package with apt-get
run: |
sudo apt-get update
sudo apt-get install -y python3-rpm
- name: Check RPM Module Location
run: python3 -c "import rpm; print(rpm.__file__)"
- name: Reinstall python3-rpm
run: sudo apt-get install --reinstall -y python3-rpm
- name: Check RPM Module Availability
run: python3 -c "import rpm; print(rpm)"
- name: Verify python3-rpm installation
run: |
if python3 -c "import rpm" &>/dev/null; then
echo "python3-rpm is installed successfully."
else
echo "ERROR: python3-rpm installation failed."
dpkg -l | grep python3-rpm
exit 1
fi
- name: Generate Manpages
run: |
chmod +x scripts/manpage_generation.sh
bash scripts/manpage_generation.sh