Skip to content

Commit

Permalink
fix(composer-install): fix vendor cache clashing with composer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Aug 2, 2023
1 parent 3ee803c commit 9683980
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions composer-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,18 @@ runs:
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
key: composer-${{ hashFiles('**/composer.json, **/composer.lock') }}
restore-keys: |
composer-${{ hashFiles('**/composer.json') }}-
composer-
- name: 'Handle vendor folder cache'
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
key: composer-vendor-${{ hashFiles('**/composer.json', '**/composer.lock') }}-${{ inputs.flags }}
restore-keys: |
composer-${{ hashFiles('**/composer.json') }}-
composer-
composer-vendor-${{ hashFiles('**/composer.json', '**/composer.lock') }}-
composer-vendor-
- uses: myparcelnl/actions/pull-docker-image@v3
with:
Expand Down

0 comments on commit 9683980

Please sign in to comment.