Skip to content

Commit

Permalink
Only run manpage GitHub action when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubowicz committed Dec 16, 2023
1 parent f49a3ef commit fcb20e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/manpage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Manpage
on:
push:
paths:
- 'detex.1'

jobs:
manpage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup dependencies
run: sudo apt install mandoc
- run: mandoc -T lint detex.1
11 changes: 1 addition & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup dependencies
run: sudo apt install flex valgrind libfl-dev
- run: |
Expand All @@ -29,12 +29,3 @@ jobs:
make
./test.pl --valgrind
make package
manpage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup dependencies
run: sudo apt install mandoc
- run: mandoc -T lint detex.1

0 comments on commit fcb20e2

Please sign in to comment.