diff --git a/src/create-envfile.py b/src/create-envfile.py index 584b002..3826cda 100644 --- a/src/create-envfile.py +++ b/src/create-envfile.py @@ -15,7 +15,9 @@ # .env is set by default file_name = str(os.environ.get("INPUT_FILE_NAME")) -path = "/github/workspace" +path = str(os.environ.get("INPUT_GITHUB_WORKSPACE")) +if path == "": + raise Exception("Could not get the GITHUB_WORKSPACE environment variable.") with open(os.path.join(path, directory, file_name), "w") as text_file: text_file.write(out_file)