Skip to content

Commit

Permalink
Fix: Use commit hash to calculate cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 7, 2019
1 parent a99ff5d commit 199d105
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php7.2-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php7.2-composer-locked-${{ github.sha }}
restore-keys: |
php7.2-composer-locked-
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php7.3-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php7.3-composer-locked-${{ github.sha }}
restore-keys: |
php7.3-composer-locked-
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: ${{ matrix.php-binary }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
key: ${{ matrix.php-binary }}-composer-${{ matrix.dependencies }}-${{ github.sha }}
restore-keys: |
${{ matrix.php-binary }}-composer-${{ matrix.dependencies }}-
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php7.3-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php7.3-composer-locked-${{ github.sha }}
restore-keys: |
php7.3-composer-locked-
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php7.3-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php7.3-composer-locked-${{ github.sha }}
restore-keys: |
php7.3-composer-locked-
Expand Down

0 comments on commit 199d105

Please sign in to comment.