mirror of
https://github.com/peter-evans/dockerhub-description.git
synced 2024-11-21 11:39:34 +01:00
16 lines
349 B
Bash
Executable file
16 lines
349 B
Bash
Executable file
#!/bin/sh -l
|
|
IFS=$'\n\t'
|
|
|
|
# Execute the action code and output to file
|
|
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
|