mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Update cache dependencies section after fix
This commit is contained in:
parent
77bc79bd22
commit
9d5e8ddc70
11
README.md
11
README.md
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user