Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/add-cli' into feature/ad…
Browse files Browse the repository at this point in the history
…d-cli
  • Loading branch information
volodymyrZotov committed Aug 19, 2022
2 parents 6ef7287 + 9d6ce73 commit e500cb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ async function run(): Promise<void> {
process.env.INPUT_UNSET_PREVIOUS = core.getInput('unset-previous');
process.env.INPUT_EXPORT_ENV = core.getInput('export-env');

const entrypointPath = `${parentDir}/entrypoint.sh`;
// Execute bash script
await exec.exec(`sh -c "` + parentDir + `/entrypoint.sh"`);
await exec.exec(`chmod +x ${entrypointPath}`);
await exec.exec(`sh -c ${entrypointPath}`);

} catch (error: any) {
core.setFailed(error.message);
Expand Down

0 comments on commit e500cb6

Please sign in to comment.