Skip to content

Commit

Permalink
Merge pull request #187 from conda-incubator/warn-no-conda
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed May 26, 2022
2 parents fa5fe79 + 8ca9e40 commit 200390f
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit 200390f

Please sign in to comment.