Skip to content

Commit

Permalink
Improve composer caching on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Veaceslav Medvedev committed Oct 8, 2021
1 parent e7b454b commit 14ae79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
${{ runner.os }}-php-${{ matrix.php-version }}-composer-
- name: Login composer
run: composer config -g github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}
Expand Down

0 comments on commit 14ae79d

Please sign in to comment.