1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-19 19:46:17 +02:00

Explain which ID to use for cache-hit in yarn's example

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
This commit is contained in:
Kipras Melnikovas 2020-02-06 17:53:25 +02:00
parent 82069170eb
commit 59bc1df8df
No known key found for this signature in database
GPG key ID: AA505BC1C6D8AD90

View file

@ -162,7 +162,7 @@ The yarn cache directory will depend on your operating system and version of `ya
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}