Merge pull request '[DO-467] fixed entrypoint.sh' (#5) from feature/DO-467--add-check-license into master
Reviewed-on: https://git.avroid.tech/Actions/addlicense-docker-action/pulls/5
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright AVROID, Ltd., 2024
|
# Copyright (c) AVROID, Ltd., 2024
|
||||||
#
|
#
|
||||||
# You can not use the contents of the file in any way without
|
# You can not use the contents of the file in any way without
|
||||||
# AVROID, Ltd. written permission.
|
# AVROID, Ltd. written permission.
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
- name: Check license for changed files
|
- name: Check license for changed files
|
||||||
id: check_license
|
id: check_license
|
||||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||||
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.13
|
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v10
|
||||||
with:
|
with:
|
||||||
input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }}
|
input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }}
|
||||||
exclude_pattern:
|
exclude_pattern:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright AVROID, Ltd., 2024
|
# Copyright (c) AVROID, Ltd., 2024
|
||||||
#
|
#
|
||||||
# You can not use the contents of the file in any way without
|
# You can not use the contents of the file in any way without
|
||||||
# AVROID, Ltd. written permission.
|
# AVROID, Ltd. written permission.
|
||||||
|
|||||||
@@ -7,10 +7,19 @@
|
|||||||
# 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
|
||||||
|
|
||||||
|
|
||||||
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 "==================================="
|
||||||
|
IFS=' '
|
||||||
|
if [ -n "$INPUT_INPUT_FILES" ]; then
|
||||||
|
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
|
||||||
|
err=1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
exit $err
|
||||||
|
else
|
||||||
|
echo /app/addlicense -check "$1" "." | sh
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user