File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,15 @@ jobs:
58
58
- name : Cache composer dependencies
59
59
uses : actions/cache@v3
60
60
with :
61
+ id : cache-vendor
61
62
path : ${{ steps.composer-cache.outputs.dir }}
62
63
# Use composer.json for key, if composer.lock is not committed.
63
64
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
64
65
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
65
66
restore-keys : ${{ runner.os }}-composer-
66
67
67
68
- name : Install Composer dependencies
69
+ if : steps.cache-vendor.outputs.cache-hit != 'true' # Skip if cache hit
68
70
run : composer install --no-progress --prefer-dist --optimize-autoloader
69
71
# run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
70
72
You can’t perform that action at this time.
0 commit comments