diff --git a/lib/main.js b/lib/main.js index 7581b56c..3f8741ee 100644 --- a/lib/main.js +++ b/lib/main.js @@ -55,12 +55,19 @@ function build_tool() { })); }); } +function export_path() { + return __awaiter(this, void 0, void 0, function* () { + yield core.group('Export path...', () => __awaiter(this, void 0, void 0, function* () { + core.addPath(productDirectory); + })); + }); +} function main() { return __awaiter(this, void 0, void 0, function* () { yield create_working_directory(); yield clone_git(); yield build_tool(); - core.addPath(productDirectory); + yield export_path(); }); } main().catch(error => { core.setFailed(error.message); }); diff --git a/src/main.ts b/src/main.ts index 3b12c8a0..2101230e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -33,11 +33,17 @@ async function build_tool(): Promise { }) } +async function export_path(): Promise { + await core.group('Export path...', async () => { + core.addPath(productDirectory); + }) +} + async function main(): Promise { await create_working_directory(); await clone_git(); await build_tool(); - core.addPath(productDirectory); + await export_path(); } main().catch(error => { core.setFailed(error.message); })