This commit is contained in:
aleksandr.vodyanov
2024-05-22 17:05:04 +03:00
parent ab00965669
commit 50885d4868
2 changed files with 11 additions and 24 deletions

View File

@@ -10,4 +10,15 @@
echo "Processing event '$GITHUB_EVENT_NAME'"
echo "List of files with absent license:"
echo "==================================="
if [ -n "$INPUT_INPUT_FILES" ]; then
export 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
else
echo /app/addlicense -check "$1" "." | sh
fi