up
This commit is contained in:
@@ -10,4 +10,15 @@
|
|||||||
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
|
||||||
|
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
|
echo /app/addlicense -check "$1" "." | sh
|
||||||
|
fi
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
# Copyright (c) AVROID, Ltd., 2024
|
|
||||||
#
|
|
||||||
# You can not use the contents of the file in any way without
|
|
||||||
# AVROID, Ltd. written permission.
|
|
||||||
#
|
|
||||||
# To obtain such a permit, you should contact AVROID, Ltd.
|
|
||||||
# at https://avroid.ru
|
|
||||||
|
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user