Skip to content

Commit

Permalink
Merge pull request #75 from osma/patch-1
Browse files Browse the repository at this point in the history
Use quotes for PHP version numbers in README
  • Loading branch information
g105b committed Jan 25, 2022
2 parents 9c88ad8 + 2457bdc commit ac8b2c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ Use the following inputs to run a specific PHP/Composer version combination:
+ `php_version` Available versions: `7.1`, `7.2`, `7.3`, `7.4`, `8.0` (default: `latest` aka: `8.0`)
+ `version` Available versions: `1`, `2` (default: `latest` aka: `2`)

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.

Example configuration that runs Composer version 1 on PHP version 7.1:
```yaml
jobs:
Expand All @@ -107,7 +109,7 @@ jobs:
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: 7.1
php_version: "7.1"
version: 1
```

Expand All @@ -128,7 +130,7 @@ jobs:
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: 7.4
php_version: "7.4"
php_extensions: redis exif
version: 2
```
Expand Down

0 comments on commit ac8b2c0

Please sign in to comment.