Skip to content

Commit 0f18aec

Browse files
committed
Update examples in README to v3
1 parent 57532f8 commit 0f18aec

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ the [Setup PHP](https://github.com/shivammathur/setup-php) action as a step.
3939
- uses: "shivammathur/setup-php@v2"
4040
with:
4141
php-version: "latest"
42-
- uses: "ramsey/composer-install@v2"
42+
- uses: "ramsey/composer-install@v3"
4343
```
4444
4545
:bulb: There is no need to set up a separate caching step since ramsey/composer-install
@@ -66,7 +66,7 @@ Valid values are:
6666
For example:
6767

6868
```yaml
69-
- uses: "ramsey/composer-install@v2"
69+
- uses: "ramsey/composer-install@v3"
7070
with:
7171
dependency-versions: "lowest"
7272
```
@@ -80,7 +80,7 @@ options, you may use the `composer-options` input parameter.
8080
For example:
8181

8282
```yaml
83-
- uses: "ramsey/composer-install@v2"
83+
- uses: "ramsey/composer-install@v3"
8484
with:
8585
composer-options: "--ignore-platform-reqs --optimize-autoloader"
8686
```
@@ -93,7 +93,7 @@ located in `packages/acme-foo/`, use `working-directory` to tell
9393
ramsey/composer-install where to run things.
9494

9595
```yaml
96-
- uses: "ramsey/composer-install@v2"
96+
- uses: "ramsey/composer-install@v3"
9797
with:
9898
working-directory: "packages/acme-foo"
9999
```
@@ -105,15 +105,15 @@ For example:
105105

106106
```yaml
107107
# Install dependencies using composer.json in the root.
108-
- uses: "ramsey/composer-install@v2"
108+
- uses: "ramsey/composer-install@v3"
109109
110110
# Install dependencies using composer.json in src/Component/Config/
111-
- uses: "ramsey/composer-install@v2"
111+
- uses: "ramsey/composer-install@v3"
112112
with:
113113
working-directory: "src/Component/Config"
114114
115115
# Install dependencies using composer.json in src/Component/Validator/
116-
- uses: "ramsey/composer-install@v2"
116+
- uses: "ramsey/composer-install@v3"
117117
with:
118118
working-directory: "src/Component/Validator"
119119
```
@@ -129,7 +129,7 @@ any other value, the action will use the default behavior, which is to read from
129129
and store to the cache.
130130

131131
```yaml
132-
- uses: "ramsey/composer-install@v2"
132+
- uses: "ramsey/composer-install@v3"
133133
with:
134134
ignore-cache: "yes"
135135
```
@@ -143,7 +143,7 @@ will not use the auto-generated cache key, so if your `composer.json` or
143143
wish to update the cache.
144144

145145
```yaml
146-
- uses: "ramsey/composer-install@v2"
146+
- uses: "ramsey/composer-install@v3"
147147
with:
148148
custom-cache-key: "my-custom-cache-key"
149149
```
@@ -167,7 +167,7 @@ even more specific, you can specify a suffix to be added to the cache key via th
167167
# Adds a suffix to the cache key which is equivalent to the full date-time
168168
# of "last Monday 00:00", which means that the cache will be force refreshed
169169
# via the first workflow which is run every Monday.
170-
- uses: "ramsey/composer-install@v2"
170+
- uses: "ramsey/composer-install@v3"
171171
with:
172172
custom-cache-suffix: $(/bin/date -u --date='last Mon' "+%F")
173173
```
@@ -214,7 +214,7 @@ steps:
214214
- uses: "shivammathur/setup-php@v2"
215215
with:
216216
php-version: "${{ matrix.php }}"
217-
- uses: "ramsey/composer-install@v2"
217+
- uses: "ramsey/composer-install@v3"
218218
with:
219219
dependency-versions: "${{ matrix.dependencies }}"
220220
composer-options: "${{ matrix.composer-options }}"

0 commit comments

Comments
 (0)