Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 2.15 KB

README.md

File metadata and controls

73 lines (48 loc) · 2.15 KB

packagist/conductor-github-action

Automatic dependency updates for Composer - tailor-made for PHP. Apply security patches within minutes and never worry about being too far behind on updates again.

About

Configure this GitHub Action for Conductor to run Composer updates in your CI environment.

The GitHub Action requires a Private Packagist account. Follow our setup guide to get started.

Dependencies

PHP and Composer are required and can be setup using the Setup PHP GitHub Action.

Supported are PHP >= 7.2 and Composer >= 2.7.0.

Usage

The GitHub Action gets triggered via the dependency_update repository_dispatch event and requires content:write permissions to commit any changes made by the composer update command using the GitHub API. The GitHub Action can then be used as a step within a job.

Create any config files and start any services that are required to run composer install/update before the Conductor step.

on:
    repository_dispatch:
        types:
            - dependency_update

name: Private Packagist Conductor

permissions:
    contents: write

jobs:
    conductor:
        name: Private Packagist Conductor
        runs-on: "ubuntu-latest"

        steps:
            - uses: actions/checkout@v4

            - name: Install PHP
              uses: "shivammathur/setup-php@v2"
              with:
                  php-version: "latest"

            # Set up any necessary config files or database here before composer install is run

            - name: "Running Conductor"
              uses: packagist/conductor-github-action

Input Parameters

file_pattern

The file_pattern input parameter allows you to configure which changed files should be included as part of the commit created by the GitHub action.

For example:

- uses: packagist/conductor-github-action
  with:
      file_pattern: "composer.*"

Copyright and License

The GitHub Action is licensed under the MIT License.