Skip to content

Use quotes for PHP version numbers in README #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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