From dc67fad7001ef9e8e3c124cb7a64e16d0a63d864 Mon Sep 17 00:00:00 2001 From: devatherock Date: Tue, 20 Jun 2023 02:32:15 -0500 Subject: [PATCH] fix: Use absolute path to index.js in entrypoint (#176) --- entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index be4838e..060fad0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,9 +1,9 @@ #!/bin/sh -l -set -eo pipefail IFS=$'\n\t' # Execute the action code and output to file -node index.js > action.log 2>&1 +node /index.js > action.log 2>&1 +exit_code=$? # Remove lines containing sensitive information from the log sed -i '/::debug::/d' ./action.log @@ -11,3 +11,6 @@ sed -i '/::add-mask::/d' ./action.log # Output the log cat action.log + +# Exit using the exit code of the node command +exit $exit_code