mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
chore: try fix
This commit is contained in:
parent
52e40477e8
commit
787ad3c57a
@ -10,12 +10,13 @@ async function main(): Promise<void> {
|
||||
const fnName = process.argv[3]
|
||||
const github = getOctokit(token)
|
||||
|
||||
const fn = await import(`./${fnName}.ts`)
|
||||
fn.default(github, context, core, io)
|
||||
const fn = require(`./${fnName}.ts`)
|
||||
fn(github, context, core, io)
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function handleError(err: any): void {
|
||||
console.error(err)
|
||||
core.setFailed(`Unhandled error: ${err}`)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user