Skip to content

Commit

Permalink
Fix restore-keys in cache example in README with dependency range
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 22, 2022
1 parent c38f1ac commit 57db6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -718,7 +718,7 @@ key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}

- If you support a range of `composer` dependencies and use `prefer-lowest` and `prefer-stable` options, you can store them in your matrix and add them to the keys.
```yaml
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}-${{ matrix.prefer }}-
key: ${{ runner.os }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
```

Expand Down

0 comments on commit 57db6ba

Please sign in to comment.