Update cache dependencies section after fix

This commit is contained in:
Shivam Mathur 2019-11-13 06:14:04 +05:30
parent 77bc79bd22
commit 9d5e8ddc70
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -188,22 +188,13 @@ You can persist composer's internal cache directory using the [`action/cache`](h
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache on linux and macOS
if: runner.os != 'Windows'
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Cache on windows
if: runner.os == 'Windows'
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Dependencies
run: composer install --prefer-dist
```