From 9d6ce73e3e74e32e610041d11af2c3da9c182eaa Mon Sep 17 00:00:00 2001 From: volodymyrZotov Date: Fri, 19 Aug 2022 12:33:07 +0300 Subject: [PATCH] add permission to execute bash script --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0a60ed8..5b5274a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,8 +10,10 @@ async function run(): Promise { 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);