Skip to content

Commit 6882e94

Browse files
committed
Update the Composer cache key to use composer.json instead of composer.lock in the reporting, testing, and wiki workflows.
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent 625822f commit 6882e94

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/reports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/cache@v5
3333
with:
3434
path: ${{ steps.composer-cache.outputs.dir }}
35-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
35+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
3636
restore-keys: |
3737
${{ runner.os }}-composer-
3838

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/cache@v5
3636
with:
3737
path: ${{ steps.composer-cache.outputs.dir }}
38-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
3939
restore-keys: |
4040
${{ runner.os }}-composer-
4141

.github/workflows/wiki.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/cache@v5
3535
with:
3636
path: ${{ steps.composer-cache.outputs.dir }}
37-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
37+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
3838
restore-keys: |
3939
${{ runner.os }}-composer-
4040

0 commit comments

Comments
 (0)