From 3b557ec4c5db2390c653568cad9af146412f35f9 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 14 Sep 2021 02:03:59 -0500 Subject: [PATCH] fix: add the entry file --- src/main.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/main.ts b/src/main.ts index e69de29b..ac372fc0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -0,0 +1,23 @@ +import * as core from "@actions/core" + +export async function main(): Promise { + try { + // TODO + } catch (err) { + core.error(err as string | Error) + core.setFailed("install-cpp failed") + return 1 + } + + core.info("install-cpp succeeded") + return 0 +} + +main() + .then((ret) => { + process.exitCode = ret + }) + .catch((error) => { + core.error("main() failed!", error) + process.exitCode = 1 + })