mirror of https://github.com/actions/cache.git
docs(examples): use expression syntax to access "steps" context
This commit is contained in:
parent
6bbe742add
commit
e2ca187fee
|
@ -240,7 +240,7 @@ If using `npm config` to retrieve the cache directory, ensure you run [actions/s
|
|||
run: |
|
||||
echo "::set-output name=dir::$(npm config get cache)"
|
||||
- uses: actions/cache@v2
|
||||
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
|
||||
id: npm-cache # use this to check for `cache-hit` ==> if: ${{ steps.npm-cache.outputs.cache-hit != 'true' }}
|
||||
with:
|
||||
path: ${{ steps.npm-cache-dir.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
|
Loading…
Reference in New Issue