From 8767d14c59d7e26cf06fff23faa3b85c6565533c Mon Sep 17 00:00:00 2001 From: Rik Huijzer <t.h.huijzer@rug.nl> Date: Thu, 12 Aug 2021 17:07:29 +0200 Subject: [PATCH] Validate output before deploying site --- .github/workflows/Deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 52ffa8b3..3cb447f9 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -42,6 +42,14 @@ jobs: # Fixes 'GKS: can't connect to GKS socket application' errors # and quality of output plots in GR back end. GKSwstype: "100" + - name: Validate output + run: | + if grep -1 "Franklin Warning" build.log; then + echo "Franklin reported a warning" + exit 1 + else + echo "Franklin did not report a warning" + fi - name: Build and Deploy uses: JamesIves/github-pages-deploy-action@4.1.0 with: