From 5c73a08045bdef61c81a6c60d208cff7ab36f3aa Mon Sep 17 00:00:00 2001 From: Anim Mouse Date: Tue, 24 Oct 2023 21:37:55 +0800 Subject: [PATCH] fix: Don't run save when cache hit and update README.md --- .github/workflows/test.yaml | 4 ++-- README.md | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d983c69..aa6b3eb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -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 diff --git a/README.md b/README.md index 0f3b8bf..3c48a07 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +1. [supplypike/setup-bin](https://github.com/supplypike/setup-bin) +2. [pbrisbin/setup-tool-action](https://github.com/pbrisbin/setup-tool-action) \ No newline at end of file