setup-hugo/src/index.ts

11 lines
257 B
TypeScript
Raw Normal View History

2024-05-02 16:38:23 +00:00
import * as core from '@actions/core'
import * as main from './main'
2024-05-03 14:17:32 +00:00
import { errorMsg } from './utils/error'
2024-05-02 16:38:23 +00:00
;(async (): Promise<void> => {
try {
await main.run()
2024-05-03 14:17:32 +00:00
} catch (e) {
core.setFailed(`Action failed with error ${errorMsg(e)}`)
2024-05-02 16:38:23 +00:00
}
})()