slight refactor, bring pod phase to k8s lib, better types

This commit is contained in:
Thomas Boop
2022-06-06 22:39:28 -04:00
parent 1bfc52f466
commit cd310988c9
6 changed files with 49 additions and 37 deletions

View File

@@ -1,4 +1,5 @@
import { Command, getInputFromStdin, prepareJobArgs } from 'hooklib'
import * as core from '@actions/core'
import {
cleanupJob,
prepareJob,
@@ -34,8 +35,7 @@ async function run(): Promise<void> {
throw new Error(`Command not recognized: ${command}`)
}
} catch (error) {
// eslint-disable-next-line no-console
console.log(error)
core.error(JSON.stringify(error))
exitCode = 1
}
process.exitCode = exitCode