Skip to content

Composer Outdated

Actions

About

Looks for outdated composer dependencies and generates a markdown report for use in a pull request
v2
Latest
Star (0)

Composer Outdated action

This action runs composer outdated on your project and generates a markdown table with the results. This is handy for adding to a pull request output.

Usage

In your workflow, define a step which refers to the action:

  steps:
    # ...
    - name: Composer Outdated
      id: composer_outdated
      uses: edwilde/composer-outdated-action@2
      with:
        extra-arguments: '--direct'

Preview

This is an example of the output for the outdated table, including the abandoned packages.

Package Current New Compare Details
⚠️ betterbrief/silverstripe-googlemapfield v2.2.1 v2.2.1 Compare Save locations using lati…
bramus/monolog-colored-line-formatter 2.0.3 3.1.2 Compare Colored Line Formatter fo…
doctrine/lexer 2.1.0 3.0.1 Compare PHP Doctrine Lexer parser…
silverstripe/framework 4.13.39 5.1.15 Compare The SilverStripe framewor…

Inputs

Extra arguments can be passed to the composer outdated command using the extra-arguments parameter. These should be separated with a space, in the same way as you would add them on the command-line.

See the available options.

Outputs

Outdated packages table (composer_outdated)

This is the markdown table displaying all outdated packages, their current version and the latest version.

In this output, any packages which are not outdated (i.e. use the symbol = in the raw output) are removed.

This can be output in later steps using:

${{ steps.composer_outdated.outputs.composer_outdated }}

Exit code (composer_outdated_exit_code)

The raw exit code from the composer outdated command, useful for debugging.

This can be output in later steps using:

${{ steps.composer_outdated.outputs.composer_outdated_exit_code }}

Gotchas

Missing extension

Cannot use silverstripe/framework 4.13.39 as it requires ext-intl * which is missing from your platform.

Make sure the PHP extension is defined in composer.json

"config": {
    "platform": {
        "php": "8.1.2",
        "ext-intl": "1.1.0"
    },
}

Composer Outdated is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Looks for outdated composer dependencies and generates a markdown report for use in a pull request
v2
Latest

Composer Outdated is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.