Files
actions-addlicense-docker/entrypoint.sh
aleksandr.vodyanov 0d89ce2da0 up
2024-05-22 16:11:34 +03:00

13 lines
278 B
Bash
Executable File

#!/bin/bash
echo "Processing event '$GITHUB_EVENT_NAME'"
echo "List of files with absent license:"
echo "==================================="
err=0
for file in $INPUT_INPUT_FILES; do
echo /app/addlicense -check "$1" $file | sh
if [ $? -ne 0]; then
err=$?
fi
done
exit $err