Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document missing bundled conda for self hosted runners #187

Merged
merged 3 commits into from May 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/setup.ts
Expand Up @@ -48,7 +48,12 @@ async function setupMiniconda(inputs: types.IActionInputs): Promise<void> {
}

if (!fs.existsSync(basePath)) {
throw Error(`No installed conda 'base' enviroment found at ${basePath}`);
throw Error(`No installed conda 'base' environment found at ${basePath}!` +
'If you are using this action in a self-hosted runner that already provides ' +
'its own Miniconda installation, please specify its location with a `CONDA` ' +
'environment variable. If you want us to download and install Miniconda or ' +
'Miniforge for you, add `miniconda-version: "latest"` or `miniforge-version: "latest"`, ' +
'respectively, to the parameters for this action.');
}

await core.group("Setup environment variables...", () =>
Expand Down