mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 08:36:45 +00:00
slight refactor, bring pod phase to k8s lib, better types
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user