Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 2.4 KB

README.md

File metadata and controls

66 lines (43 loc) · 2.4 KB

composer-root-version-action

Deploy Integrate Prune Release Renew

Provides a GitHub Action that sets a COMPOSER_ROOT_VERSION environment variable from the value of the branch alias defined in composer.json.

Usage

Inputs

  • branch - Optional, name of the branch for which we want to retrieve the branch alias. Defaults to main.
  • path - Optional, path in which to look for composer.json. Defaults to '.'.
name: "Integrate"

on:
  pull_request: null
  push:
    branches:
      - "main"

jobs:
  integrate:
    name: "Integrate"

    runs-on: "ubuntu-latest"

    steps:
      - name: "Checkout"
        uses: "actions/checkout@v2"

      - name: "Set COMPOSER_ROOT_VERSION environment variable"
        uses: "ergebnis/composer-root-version-action@main"
        with:
          branch: "main"

      - name: "Install dependencies with composer"
        run: "composer install --no-interaction --no-progress --no-suggest"

Changelog

Please have a look at CHANGELOG.md.

Contributing

Please have a look at CONTRIBUTING.md.

Code of Conduct

Please have a look at CODE_OF_CONDUCT.md.

License

This package is licensed using the MIT License.

Please have a look at LICENSE.md.

Curious what I am building?

📬 Subscribe to my list, and I will occasionally send you an email to let you know what I am working on.