mirror of
https://github.com/peter-evans/dockerhub-description.git
synced 2024-12-03 17:39:32 +01:00
fix: Use absolute path to index.js in entrypoint (#176)
This commit is contained in:
parent
67a28beebc
commit
dc67fad700
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue