GitHub Action
This action sets up the runner environment with Project-Env. It downloads the CLI, runs project-env-cli install, and configures all tool paths and environment variables for subsequent workflow steps.
Inputs
Section titled “Inputs”cli-version
Section titled “cli-version”Required. Version of Project-Env CLI to use.
cli-debug
Section titled “cli-debug”Whether to activate the debug mode of the Project-Env CLI.
Example usage
Section titled “Example usage”steps: - uses: actions/checkout@v4
- uses: Project-Env/project-env-github-action@v1.5.0 with: cli-version: '3.26.0'
- run: java --version - run: mvn --versionAfter the action runs, all tools declared in your project-env.toml are available on PATH with the correct environment variables set.