Skip to content

Commit ac8b2c0

Browse files
author
Greg Bowler
authored
Merge pull request #75 from osma/patch-1
Use quotes for PHP version numbers in README
2 parents 9c88ad8 + 2457bdc commit ac8b2c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ Use the following inputs to run a specific PHP/Composer version combination:
9797
+ `php_version` Available versions: `7.1`, `7.2`, `7.3`, `7.4`, `8.0` (default: `latest` aka: `8.0`)
9898
+ `version` Available versions: `1`, `2` (default: `latest` aka: `2`)
9999

100+
Make sure to put the PHP version number in quotes, otherwise YAML will interpret e.g. `8.0` as `8` which means latest 8.x, not 8.0.
101+
100102
Example configuration that runs Composer version 1 on PHP version 7.1:
101103
```yaml
102104
jobs:
@@ -107,7 +109,7 @@ jobs:
107109
- name: Install dependencies
108110
uses: php-actions/composer@v6
109111
with:
110-
php_version: 7.1
112+
php_version: "7.1"
111113
version: 1
112114
```
113115

@@ -128,7 +130,7 @@ jobs:
128130
- name: Install dependencies
129131
uses: php-actions/composer@v6
130132
with:
131-
php_version: 7.4
133+
php_version: "7.4"
132134
php_extensions: redis exif
133135
version: 2
134136
```

0 commit comments

Comments
 (0)