Skip to content

Commit

Permalink
fix: Don't run save when cache hit and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimMouse committed Oct 24, 2023
1 parent 2c1ca9a commit 5c73a08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: hello

- name: Save Hello World cache
if: matrix.cache == 'cache'
if: matrix.cache == 'cache' && ! steps.restore-cache.outputs.cache-hit
uses: actions/cache/save@v3
with:
path: ${{ runner.tool_cache }}/hello-world-program
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
run: hh2.golden

- name: Save Hello World cache
if: matrix.cache == 'cache'
if: matrix.cache == 'cache' && ! steps.restore-cache.outputs.cache-hit
uses: actions/cache/save@v3
with:
path: ${{ runner.tool_cache }}/hello-world-program
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ You can also check actions that uses this tool cache.
8. [AnimMouse/setup-age](https://github.com/AnimMouse/setup-age)
### Similar actions
1. [supplypike/setup-bin](https://github.com/supplypike/setup-bin)
1. [supplypike/setup-bin](https://github.com/supplypike/setup-bin)
2. [pbrisbin/setup-tool-action](https://github.com/pbrisbin/setup-tool-action)

0 comments on commit 5c73a08

Please sign in to comment.