-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use absolute path to index.js in entrypoint (#176)
- Loading branch information
1 parent
67a28be
commit dc67fad
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |