up
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# To obtain such a permit, you should contact AVROID, Ltd.
|
# To obtain such a permit, you should contact AVROID, Ltd.
|
||||||
# at https://avroid.ru
|
# at https://avroid.ru
|
||||||
|
|
||||||
FROM harbor.avroid.tech/devops/addlicense:1.1.2
|
FROM harbor.avroid.tech/devops/addlicense:1.1.3
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
COPY ./ /src
|
COPY ./ /src
|
||||||
|
|||||||
@@ -3,10 +3,14 @@ echo "Processing event '$GITHUB_EVENT_NAME'"
|
|||||||
echo "List of files with absent license:"
|
echo "List of files with absent license:"
|
||||||
echo "==================================="
|
echo "==================================="
|
||||||
err=0
|
err=0
|
||||||
for file in $INPUT_INPUT_FILES; do
|
if [ -e $INPUT_INPUT_FILES ]; then
|
||||||
|
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
|
||||||
exit $err
|
exit $err
|
||||||
|
elif
|
||||||
|
echo /app/addlicense -check "$1" . | sh
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user