From d4c53bc33d4a91e5746d95cf5cb5780c2895fb5c Mon Sep 17 00:00:00 2001 From: Dylan Reimerink Date: Mon, 23 Sep 2024 17:03:06 +0200 Subject: [PATCH] .github/workflows: Improve caching and workflow triggers Currently, the commit authors cache is built once then never updated. This change should make it always save the latest version and pull the latest version when needed. This change also makes the spellcheck workflow only trigger on PRs or manually since its very unlikely that spellcheck fails after a merge on master. Signed-off-by: Dylan Reimerink --- .github/workflows/deploy-gh-pages.yaml | 4 +++- .github/workflows/spellcheck.yaml | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yaml b/.github/workflows/deploy-gh-pages.yaml index aacf581a..9327bab2 100644 --- a/.github/workflows/deploy-gh-pages.yaml +++ b/.github/workflows/deploy-gh-pages.yaml @@ -35,7 +35,9 @@ jobs: uses: actions/cache@v4 with: path: .cache - key: cache-plugins + key: cache-plugins-${{ github.run_id }} + restore-keys: | + cache-plugins- - name: Apply deploy config run: | echo "" >> mkdocs.yml diff --git a/.github/workflows/spellcheck.yaml b/.github/workflows/spellcheck.yaml index dc153a94..c01d01e4 100644 --- a/.github/workflows/spellcheck.yaml +++ b/.github/workflows/spellcheck.yaml @@ -2,9 +2,8 @@ name: Spellcheck on: pull_request: {} - push: - branches: - - master + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: env: USER: root