diff --git a/src/main.ts b/src/main.ts index bdcbb12..8339b00 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,6 @@ import { contextFromEnvironment, generateVersion } from './version' * @returns {Promise} Resolves when the action is complete. */ export async function run(): Promise { - console.log('XXX', process.env.GITHUB_REF) try { const packageJsonPath = 'package.json' const packageJson = JSON.parse( @@ -29,6 +28,6 @@ export async function run(): Promise { ) } } catch (error) { - if (error instanceof Error) core.setFailed(error.message) + core.setFailed(error instanceof Error ? error.message : 'Unknown error') } }