diff --git a/src/main.ts b/src/main.ts index 9192e9f..62732c0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import core from '@actions/core' +import { setFailed } from '@actions/core' import { loadConfig } from './load_config' import { setup_conda } from './conda_actions' @@ -8,9 +8,9 @@ async function run(): Promise { await setup_conda(config) } catch (error) { if (typeof error === 'string') { - core.setFailed(error) + setFailed(error) } else if (error instanceof Error) { - core.setFailed(error.message) + setFailed(error.message) } } }