From d70afb7eccb7f24590a4ff3a327368b6a50fece6 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 3 Oct 2022 13:32:10 +0200 Subject: [PATCH] CI: Move link check to separate workflow The job often fails temporarily, which can be confusing to contributors. By moving it to a separate 'Check Links' workflow, it hopefully becomes clearer that the failure is unrelated to a PR. --- .github/workflows/blog.yml | 14 -------------- .github/workflows/check-links.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/check-links.yml diff --git a/.github/workflows/blog.yml b/.github/workflows/blog.yml index dcae8736..9981287e 100644 --- a/.github/workflows/blog.yml +++ b/.github/workflows/blog.yml @@ -38,20 +38,6 @@ jobs: name: generated_site path: blog/public - zola_check: - name: "Zola Check" - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - - name: 'Download Zola' - run: curl -sL https://github.com/getzola/zola/releases/download/v0.16.1/zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv - - - name: "Run zola check" - run: ../zola check - working-directory: "blog" - check_spelling: name: "Check Spelling" runs-on: ubuntu-latest diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 00000000..a125ed52 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,27 @@ +name: Check Links + +on: + push: + branches: + - "*" + - "!staging.tmp" + tags: + - "*" + pull_request: + schedule: + - cron: "0 0 1/4 * *" # every 4 days + +jobs: + zola_check: + name: "Zola Check" + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: "Download Zola" + run: curl -sL https://github.com/getzola/zola/releases/download/v0.16.1/zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv + + - name: "Run zola check" + run: ../zola check + working-directory: "blog"