Skip to content

Commit a04630d

Browse files
committed
skip install on cache hit
1 parent b2e5add commit a04630d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/actions/cache/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ runs:
5353
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
5454

5555
- name: Restore Yarn
56+
id: yarn-cache
5657
uses: actions/cache@v2
5758
with:
5859
path: ${{ steps.yarn-cache-dir.outputs.dir || '/home/runner/work/api-clients-automation/api-clients-automation/.yarn/cache' }}
5960
key: node-cache-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
6061

6162
- name: Install JavaScript dependencies
63+
if: steps.yarn-cache.outputs.cache-hit != 'true'
6264
shell: bash
6365
run: yarn install
6466

0 commit comments

Comments
 (0)