Skip to content

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.

Required. Version of Project-Env CLI to use.

Whether to activate the debug mode of the Project-Env CLI.

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 --version

After the action runs, all tools declared in your project-env.toml are available on PATH with the correct environment variables set.