Skip to content

the composer version cannot be defined more precisely than the "major" version #87

Closed
@Un1matr1x

Description

@Un1matr1x

I tried to define the composer version as described here in the readme file.

If I only define the major-version the workflow file looks like this

name: Validate

on: [push]

jobs:
  build-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3.0.2

      - name: Validate dependencies
        uses: php-actions/composer@v6.0.0
        with:
          command: validate
          php_version: "8.0.1"
          version: 2

and the workflow passes

if I change the version to 2.2, 2.x or "2.2" they all fail.

The failed workflows can be seen below and the debug logs are also preserved in a private gist

Version | Workflow | Logs
2.2 | failed | log
2.x | failed | log
"2.2" | failed | log

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions