Fix GitHub action
This commit is contained in:
parent
627f25c7b6
commit
d803a01405
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -56,16 +56,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Determine composer cache directory on Linux
|
- name: Determine composer cache directory on Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: echo "::set-env name=COMPOSER_CACHE_DIR::$(composer config cache-dir)"
|
run: |
|
||||||
|
echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Determine composer cache directory on Windows
|
- name: Determine composer cache directory on Windows
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: ECHO "::set-env name=COMPOSER_CACHE_DIR::~\AppData\Local\Composer"
|
run: |
|
||||||
|
echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Cache dependencies installed with composer
|
- name: Cache dependencies installed with composer
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ env.COMPOSER_CACHE_DIR }}
|
path: ${{ steps.cache-env.outputs.dir }}
|
||||||
key: php${{ matrix.php }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
|
key: php${{ matrix.php }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
php${{ matrix.php }}-composer-${{ matrix.dependencies }}-
|
php${{ matrix.php }}-composer-${{ matrix.dependencies }}-
|
||||||
|
Loading…
Reference in New Issue
Block a user