dockerhub-description/entrypoint.sh

14 lines
288 B
Bash
Raw Normal View History

2019-06-25 12:22:11 +02:00
#!/bin/sh -l
set -eo pipefail
2019-06-25 12:22:11 +02:00
IFS=$'\n\t'
# Execute the action code and output to file
node index.js > action.log 2>&1
# 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