Skip to content

Commit

Permalink
Cache separately with and without dev packages
Browse files Browse the repository at this point in the history
But reuse the cache from the other version if possible.
  • Loading branch information
acoulton committed Dec 17, 2024
1 parent 9322901 commit 07f3e6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cached-composer-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ runs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-default-${{ hashFiles('**/composer.lock') }}
key: composer-default-${{ hashFiles('**/composer.lock') }}-${{ inputs.no_dev }}
restore-keys: |
composer-default-${{ hashFiles('**/composer.lock') }}
composer-default
- name: Install composer dependencies
Expand Down

0 comments on commit 07f3e6e

Please sign in to comment.