This commit is contained in:
aleksandr.vodyanov
2024-05-22 17:11:29 +03:00
parent 1c5723352e
commit 3cb568cb0f

View File

@@ -10,11 +10,11 @@
echo "Processing event '$GITHUB_EVENT_NAME'" echo "Processing event '$GITHUB_EVENT_NAME'"
echo "List of files with absent license:" echo "List of files with absent license:"
echo "===================================" echo "==================================="
if [ -n "$INPUT_INPUT_FILES" ]; then if [[ -n "$INPUT_INPUT_FILES" ]]; then
export err=0 err=0
for file in $INPUT_INPUT_FILES; do for file in $INPUT_INPUT_FILES; do
echo /app/addlicense -check "$1" "$file" | sh echo /app/addlicense -check "$1" "$file" | sh
if [ $? -ne 0]; then if [[ $? -ne 0]]; then
err=$? err=$?
fi fi
done done