From 0fbf43af0e516d49d81fb3ebfac506bb74322286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Rodr=C3=ADguez-Guerra?= Date: Tue, 3 Aug 2021 13:00:25 +0200 Subject: [PATCH 1/3] Document missing bundled conda for self hosted runners --- src/setup.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/setup.ts b/src/setup.ts index 60412d08..bed81193 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -48,7 +48,11 @@ async function setupMiniconda(inputs: types.IActionInputs): Promise { } if (!fs.existsSync(basePath)) { - throw Error(`No installed conda 'base' enviroment found at ${basePath}`); + throw Error(`No installed conda 'base' enviroment 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 for ' + + 'you, use `miniconda-version: "latest"` in the parameters for this action.'); } await core.group("Setup environment variables...", () => From 76b481aad8fcb7bedc7acbcaa3c5d4493f698939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Rodr=C3=ADguez-Guerra?= Date: Tue, 10 Aug 2021 09:31:22 +0200 Subject: [PATCH 2/3] mention miniforge too --- src/setup.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/setup.ts b/src/setup.ts index bed81193..707026ab 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -51,8 +51,9 @@ async function setupMiniconda(inputs: types.IActionInputs): Promise { throw Error(`No installed conda 'base' enviroment 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 for ' + - 'you, use `miniconda-version: "latest"` in the parameters for this action.'); + '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...", () => From 8ca9e40cc6af21c75a0d82fde604ad61fb01cf49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Rodr=C3=ADguez-Guerra?= Date: Fri, 20 Aug 2021 09:48:26 +0200 Subject: [PATCH 3/3] Fix typo Co-authored-by: Jaewoo Park --- src/setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.ts b/src/setup.ts index 707026ab..5eb11f1c 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -48,7 +48,7 @@ async function setupMiniconda(inputs: types.IActionInputs): Promise { } 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 ' +