From e29508a0f94fbfa2af07da49d067c39d9602e1d7 Mon Sep 17 00:00:00 2001 From: Piotr Kubowicz Date: Sat, 16 Dec 2023 17:26:37 +0100 Subject: [PATCH] Only run manpage GitHub action when needed --- .github/workflows/manpage.yml | 15 +++++++++++++++ .github/workflows/test.yml | 11 +---------- 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/manpage.yml diff --git a/.github/workflows/manpage.yml b/.github/workflows/manpage.yml new file mode 100644 index 0000000..8613cb5 --- /dev/null +++ b/.github/workflows/manpage.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 196e170..9dad0d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: | @@ -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