This commit is contained in:
aleksandr.vodyanov
2024-05-22 16:11:34 +03:00
parent 0660c5ff1c
commit 0d89ce2da0

View File

@@ -3,9 +3,10 @@ echo "Processing event '$GITHUB_EVENT_NAME'"
echo "List of files with absent license:"
echo "==================================="
err=0
INPUT_INPUT_FILES="$(pwd)/Dockerfile $(pwd)/entrypoint.sh"
echo $INPUT_INPUT_FILES
for file in $INPUT_INPUT_FILES; do
echo /app/addlicense -check "$1" $file | sh
if [ $? -ne 0]; then
err=$?
fi
done
exit $err