Provides a GitHub Action that sets a COMPOSER_ROOT_VERSION
environment variable from the value of the branch alias defined in composer.json
.
branch
- Optional, name of the branch for which we want to retrieve the branch alias. Defaults tomain
.path
- Optional, path in which to look forcomposer.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"
Please have a look at CHANGELOG.md
.
Please have a look at CONTRIBUTING.md
.
Please have a look at CODE_OF_CONDUCT.md
.
This package is licensed using the MIT License.
Please have a look at LICENSE.md
.
📬 Subscribe to my list, and I will occasionally send you an email to let you know what I am working on.