mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
15 lines
320 B
TypeScript
15 lines
320 B
TypeScript
import * as core from '@actions/core';
|
|
import * as main from './main';
|
|
|
|
(async (): Promise<void> => {
|
|
try {
|
|
await main.run();
|
|
} catch (error) {
|
|
if (error instanceof Error) {
|
|
core.setFailed(`Action failed with "${error.message}"`);
|
|
} else {
|
|
core.setFailed('unexpected error');
|
|
}
|
|
}
|
|
})();
|