From 3db174b41c5def1ec4ace29d1282a2bb81f5a133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jone=C5=A1?= Date: Sun, 8 May 2022 11:03:59 +0200 Subject: [PATCH] verify PDF/A in GitHub workflow --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90e172e..558eeee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,3 +32,24 @@ jobs: path: | *.pdf + verify: + name: Verify PDF/A + runs-on: ubuntu-latest + needs: build + + steps: + - name: Checkout verifier + uses: actions/checkout@v2 + with: + repository: mff-cuni-cz/cuni-thesis-validator + ref: ba1d9e7be0b70782bf19643eb9a7627ec046dfb7 + - name: Build verifier Docker image + run: docker build -t thesis-validator . + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: Thesis + - name: Run verifier + run: > + docker run --rm -i -v $PWD:/thesis thesis-validator verify + /thesis/*.pdf | tee /dev/stderr | grep -qE 'nonCompliant="0"'