Skip to content

Use the OS php version, if 'php_version' is unset #132

Description

@xy2z

If php_version is not set, please use the OS php version and extensions.

So in this example php-actions/composer is using php 8.5 even though the OS is using php 8.3

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Setup PHP 8.3
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'

      - uses: php-actions/composer@v6
...

This can be fixed by simply adding 'php_version' to the composer step - however it would be nice if it just defaulted to the OS version

      - uses: php-actions/composer@v6
        with:
          php_version: "8.3" # if this is unset - it's using the latest php version (8.5 atm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions