Skip to content

Commit

Permalink
fix: Use absolute path to index.js in entrypoint (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
devatherock committed Jun 20, 2023
1 parent 67a28be commit dc67fad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/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
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

0 comments on commit dc67fad

Please sign in to comment.