From db0ad0d03b25a56ca0a5911e45ebb365a1a267bd Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 25 Jul 2020 17:57:44 -0400 Subject: [PATCH] Bugfix cwd --- action.yml | 1 - dist/index.js | 5 ++++- main.js | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index ba3df5a..5c4fc40 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,6 @@ inputs: default: "barichello/godot-ci:latest" directory: description: "The name directory to run tests in." - defaut: "." runs: using: "node12" main: "dist/index.js" diff --git a/dist/index.js b/dist/index.js index 53be9d5..fec6313 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12191,7 +12191,10 @@ try { var docker_image = core.getInput('containerImage'); var work_dir = core.getInput('directory'); - process.chdir(work_dir); + if(work_dir) + { + process.chdir(work_dir); + } // Pull docker image for building console.log("Pulling build image..."); diff --git a/main.js b/main.js index 9ee20fe..721dd71 100644 --- a/main.js +++ b/main.js @@ -12,7 +12,10 @@ try { var docker_image = core.getInput('containerImage'); var work_dir = core.getInput('directory'); - process.chdir(work_dir); + if(work_dir) + { + process.chdir(work_dir); + } // Pull docker image for building console.log("Pulling build image...");