Skip to content

Commit

Permalink
.github/workflows: Improve caching and workflow triggers
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dylandreimerink committed Sep 23, 2024
1 parent 08470a2 commit d4c53bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4c53bc

Please sign in to comment.