mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-06-06 03:28:40 +02:00
12 lines
281 B
TypeScript
12 lines
281 B
TypeScript
import * as core from '@actions/core';
|
|
import * as main from './main';
|
|
|
|
(async (): Promise<void> => {
|
|
try {
|
|
await main.run();
|
|
} catch (e) {
|
|
const message = e instanceof Error ? e.message : String(e);
|
|
core.setFailed(`Action failed with error ${message}`);
|
|
}
|
|
})();
|