Skip to content

Commit

Permalink
added group for export path too
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedek Kozma committed Nov 27, 2019
1 parent f962905 commit a68fc89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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); });
8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ async function build_tool(): Promise<void> {
})
}

async function export_path(): Promise<void> {
await core.group('Export path...', async () => {
core.addPath(productDirectory);
})
}

async function main(): Promise<void> {
await create_working_directory();
await clone_git();
await build_tool();
core.addPath(productDirectory);
await export_path();
}

main().catch(error => { core.setFailed(error.message); })

0 comments on commit a68fc89

Please sign in to comment.