Skip to content

Commit

Permalink
GHA: follow cache docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Mar 13, 2024
1 parent e0f5daf commit 19ed069
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ jobs:
with:
python-version: '3.x'

- name: Setup Cache
uses: actions/cache@v4
- name: Restore cache
id: cache-docs-restore
uses: actions/cache/restore@v4
with:
key: docs-${{ hashfiles('.cache/**') }}
path: .cache
restore-keys: |
docs-

- name: Install dependencies
run: sudo apt-get install pngquant
Expand Down Expand Up @@ -68,10 +67,11 @@ jobs:
gitHubToken: ${{ secrets.GH_TOKEN }}

- name: Save build cache
id: cache-docs-save
uses: actions/cache/save@v4
with:
key: docs-${{ hashfiles('.cache/**') }}
path: .cache
key: ${{ steps.cache-docs-restore.outputs.cache-primary-key }}

comment:
needs: build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ jobs:
with:
python-version: '3.x'

- name: Setup Cache
uses: actions/cache@v4
- name: Restore cache
id: cache-docs-restore
uses: actions/cache/restore@v4
with:
key: docs-${{ hashfiles('.cache/**') }}
path: .cache
restore-keys: |
docs-

- name: Install dependencies
run: sudo apt-get install pngquant
Expand Down Expand Up @@ -89,10 +88,11 @@ jobs:
gitHubToken: ${{ secrets.GH_TOKEN }}

- name: Save build cache
id: cache-docs-save
uses: actions/cache/save@v4
with:
key: docs-${{ hashfiles('.cache/**') }}
path: .cache
key: ${{ steps.cache-docs-restore.outputs.cache-primary-key }}

webhook:
name: 'webhook'
Expand Down

0 comments on commit 19ed069

Please sign in to comment.