From e3e0e5fa70738f574a7ead29f3ccd83c280a06f1 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 12:33:17 +0300 Subject: [PATCH 01/58] fixed entrypoint.sh --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index da2b1f0..d9b82ae 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,6 +11,8 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" +err=0 for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" $file | sh + {echo /app/addlicense -check "$1" $file || err=1} | sh done +exit $err From 5d2764e48897d17efc8a8e97b5d99d8314aea885 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 12:35:01 +0300 Subject: [PATCH 02/58] test --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d24c7bc..2b34ceb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) AVROID, Ltd., 2024 +# Ccopyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 5ea8788d6ceda242a807f421c0fa605a8b91c82e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 12:35:31 +0300 Subject: [PATCH 03/58] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d9b82ae..4d4cf38 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) AVROID, Ltd., 2024 +# cCopyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 3a671b2f726642c142fe9caae547ade26aa3e197 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 12:35:53 +0300 Subject: [PATCH 04/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 93c164f..e61f7fb 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -1,4 +1,4 @@ -# Copyright AVROID, Ltd., 2024 +# cCopyright AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 045ae167f9512dfd09a8b180b86dd37df97318ef Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 12:36:27 +0300 Subject: [PATCH 05/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index e61f7fb..ff10132 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license 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@v2 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From d52751f6c5dd4314ebf88232e1b0adb51e9c1e68 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 14:03:45 +0300 Subject: [PATCH 06/58] up --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 4d4cf38..df4e7bf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,6 +12,7 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" err=0 +echo $INPUT_INPUT_FILES for file in $INPUT_INPUT_FILES; do {echo /app/addlicense -check "$1" $file || err=1} | sh done From 1a0872358e4493edd7ebc2e072602f7821b0128c Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 14:04:27 +0300 Subject: [PATCH 07/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index ff10132..ec0e913 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.1 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 3d2f4f400fbad5a08c35c473a532be04fe36ee66 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 14:05:55 +0300 Subject: [PATCH 08/58] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index df4e7bf..e1bcf48 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,6 +14,6 @@ echo "===================================" err=0 echo $INPUT_INPUT_FILES for file in $INPUT_INPUT_FILES; do - {echo /app/addlicense -check "$1" $file || err=1} | sh + echo /app/addlicense -check "$1" $file || err=1 | sh done exit $err From e2f18f27238da3b964c42b8cbd372ceaa25265d7 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 14:06:16 +0300 Subject: [PATCH 09/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index ec0e913..dc15abc 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.1 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.2 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 0660c5ff1c5daa8ddf9e72151bce7de01412e9ea Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 15:47:35 +0300 Subject: [PATCH 10/58] up --- Dockerfile | 6 +++--- entrypoint.sh | 14 +++----------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b34ceb..125f5f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Ccopyright (c) AVROID, Ltd., 2024 +# Cocpyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. @@ -9,5 +9,5 @@ FROM harbor.avroid.tech/devops/addlicense:1.1.2 COPY entrypoint.sh /entrypoint.sh - -ENTRYPOINT ["/entrypoint.sh"] +COPY ./ /src +#ENTRYPOINT ["/src/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index e1bcf48..4bfe09a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,19 +1,11 @@ -#!/bin/sh -# cCopyright (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 - - +#!/bin/bash echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" err=0 +INPUT_INPUT_FILES="$(pwd)/Dockerfile $(pwd)/entrypoint.sh" echo $INPUT_INPUT_FILES for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" $file || err=1 | sh + echo /app/addlicense -check "$1" $file | sh done exit $err From 0d89ce2da09bc72f5877b51aa8a63ae2be29b57c Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:11:34 +0300 Subject: [PATCH 11/58] up --- entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4bfe09a..86fda77 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,9 +3,10 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" err=0 -INPUT_INPUT_FILES="$(pwd)/Dockerfile $(pwd)/entrypoint.sh" -echo $INPUT_INPUT_FILES for file in $INPUT_INPUT_FILES; do echo /app/addlicense -check "$1" $file | sh + if [ $? -ne 0]; then + err=$? + fi done exit $err From bea664fafecafc82e24fe7cc1fe73a90b949f2cb Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:18:19 +0300 Subject: [PATCH 12/58] up --- Dockerfile | 2 +- entrypoint.sh | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 125f5f2..c5a9bba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # To obtain such a permit, you should contact AVROID, Ltd. # 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 ./ /src diff --git a/entrypoint.sh b/entrypoint.sh index 86fda77..b4a767e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,10 +3,14 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" 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 +if [ -e $INPUT_INPUT_FILES ]; then + for file in $INPUT_INPUT_FILES; do + echo /app/addlicense -check "$1" $file | sh + if [ $? -ne 0]; then + err=$? + fi + done + exit $err +elif + echo /app/addlicense -check "$1" . | sh +fi From 6ead47804069b90613b30ad6283b1d214dcca6f5 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:18:45 +0300 Subject: [PATCH 13/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index dc15abc..0a16fe6 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.2 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.3 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From db32465d735150a02c63b9cd3a1df01da8249c65 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:20:07 +0300 Subject: [PATCH 14/58] up --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5a9bba..571d5a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,4 @@ FROM harbor.avroid.tech/devops/addlicense:1.1.3 COPY entrypoint.sh /entrypoint.sh -COPY ./ /src -#ENTRYPOINT ["/src/entrypoint.sh"] +ENTRYPOINT ["/src/entrypoint.sh"] From 06ad0d43620aae742b25817e6a0f9a27e6e0f082 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:20:37 +0300 Subject: [PATCH 15/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 0a16fe6..0b5d2ae 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.3 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.4 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 5b8b12d21cad34b9020ba6b89e603e83d8e84aed Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:22:01 +0300 Subject: [PATCH 16/58] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index b4a767e..1c56ac6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" From c74c84cc4104caf6a04be3fa7f070a3d0e53d5a7 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:23:07 +0300 Subject: [PATCH 17/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 0b5d2ae..e266534 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.4 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.5 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From d192e120581fcd58dd9d92c525dd18d0a2fb17af Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:24:28 +0300 Subject: [PATCH 18/58] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 571d5a0..1b1e66c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,4 @@ FROM harbor.avroid.tech/devops/addlicense:1.1.3 COPY entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/src/entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"] From 90ad9ac47f687be98e5025c0d964051306afe93e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:25:03 +0300 Subject: [PATCH 19/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index e266534..88195a2 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.5 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.6 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 6fbb1c3d1d70f5982c300bbd23cd1e7d6969fb86 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:26:05 +0300 Subject: [PATCH 20/58] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1c56ac6..0e2f98d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,6 +11,6 @@ if [ -e $INPUT_INPUT_FILES ]; then fi done exit $err -elif +else echo /app/addlicense -check "$1" . | sh fi From 1da93f86c2e88c1a99b0628eb145725a239ba053 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:26:39 +0300 Subject: [PATCH 21/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 88195a2..a579b26 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.6 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.7 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From bd48ccd63ed525514d039233fbf6e07fec481e2e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:28:05 +0300 Subject: [PATCH 22/58] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1b1e66c..940c982 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Cocpyright (c) AVROID, Ltd., 2024 +# Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From daf5365958dde539e988a37f665b5db08b6adf1d Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:29:23 +0300 Subject: [PATCH 23/58] up --- .gitea/workflows/check-license.yml | 2 +- action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index a579b26..6343493 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -1,4 +1,4 @@ -# cCopyright AVROID, Ltd., 2024 +# Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. diff --git a/action.yml b/action.yml index 66b02fd..5b1be05 100644 --- a/action.yml +++ b/action.yml @@ -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 # AVROID, Ltd. written permission. From 2379598af9dd0b085e4c81616029f8329b9704b9 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:31:09 +0300 Subject: [PATCH 24/58] up --- entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 0e2f98d..d2c5cde 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,12 @@ #!/bin/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 "===================================" From d39e8a04faf59a2156ebf125bfc3ba5b4f6a8824 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:39:06 +0300 Subject: [PATCH 25/58] up --- entrypoint.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d2c5cde..12ccc85 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,14 +11,14 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" err=0 -if [ -e $INPUT_INPUT_FILES ]; then - for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" $file | sh - if [ $? -ne 0]; then - err=$? - fi - done - exit $err +if [ -n $INPUT_INPUT_FILES ]; then + 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 From 5ed342ef13c099ceedb4b3254b0b79686c6a4c0f Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:39:42 +0300 Subject: [PATCH 26/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 6343493..e3f09c0 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.7 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.8 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 0570e7a03ce5bcb0d5ce4677e9c59f40718b1527 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:41:05 +0300 Subject: [PATCH 27/58] up --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 12ccc85..b4ca591 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,9 +10,13 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" +echo 1 err=0 +echo 2 if [ -n $INPUT_INPUT_FILES ]; then + echo 3 for file in $INPUT_INPUT_FILES; do + echo 4 echo /app/addlicense -check "$1" $file | sh if [ $? -ne 0]; then err=$? From f04661f94ff7316d2c5843788dadd063947e30c8 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:41:26 +0300 Subject: [PATCH 28/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index e3f09c0..cede614 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.8 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.9 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From ba41b86c3c094d834460e5b271ecfc57abbe3740 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:45:23 +0300 Subject: [PATCH 29/58] up --- entrypoint.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b4ca591..75e6f50 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,13 +10,9 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -echo 1 -err=0 -echo 2 -if [ -n $INPUT_INPUT_FILES ]; then - echo 3 +if [ -e $INPUT_INPUT_FILES ]; then + export err=0 for file in $INPUT_INPUT_FILES; do - echo 4 echo /app/addlicense -check "$1" $file | sh if [ $? -ne 0]; then err=$? From d32b6a2eb399f2c23af5865e3ac53e5801eb1f61 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:45:53 +0300 Subject: [PATCH 30/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index cede614..c904c35 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.9 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.10 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 0415c5cdbff5b2b9d21f6f702716600c17c0701e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:46:51 +0300 Subject: [PATCH 31/58] up --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 940c982..d56f738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,5 @@ FROM harbor.avroid.tech/devops/addlicense:1.1.3 COPY entrypoint.sh /entrypoint.sh + ENTRYPOINT ["/entrypoint.sh"] From 58de8753b3eb50b602d51ffee479d8b4ebe8e96c Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:53:55 +0300 Subject: [PATCH 32/58] up --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 75e6f50..302ef9f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without @@ -10,15 +10,15 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -if [ -e $INPUT_INPUT_FILES ]; then +if [ -n $INPUT_INPUT_FILES ]; then export err=0 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=$? fi done exit $err else - echo /app/addlicense -check "$1" . | sh + echo /app/addlicense -check "$1" "." | sh fi From afae345236219397a0caef8baf481aa4d6ef49d7 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 16:54:28 +0300 Subject: [PATCH 33/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index c904c35..6532734 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.10 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.11 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 0a98ecaee0c78ea2dab8df463ce446f9fb49b57b Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:03:27 +0300 Subject: [PATCH 34/58] up --- entrypoint.sh | 11 ----------- entrypoint2.sh | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 11 deletions(-) create mode 100755 entrypoint2.sh diff --git a/entrypoint.sh b/entrypoint.sh index 302ef9f..6264b81 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,15 +10,4 @@ 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 diff --git a/entrypoint2.sh b/entrypoint2.sh new file mode 100755 index 0000000..302ef9f --- /dev/null +++ b/entrypoint2.sh @@ -0,0 +1,24 @@ +#!/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 From ab00965669c24685fa6ab511b33f432ef30611f2 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:03:56 +0300 Subject: [PATCH 35/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 6532734..00d1c10 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.11 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.12 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 50885d4868e70a01386654128f4874f18606a492 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:05:04 +0300 Subject: [PATCH 36/58] up --- entrypoint.sh | 11 +++++++++++ entrypoint2.sh | 24 ------------------------ 2 files changed, 11 insertions(+), 24 deletions(-) delete mode 100755 entrypoint2.sh diff --git a/entrypoint.sh b/entrypoint.sh index 6264b81..b334304 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 diff --git a/entrypoint2.sh b/entrypoint2.sh deleted file mode 100755 index 302ef9f..0000000 --- a/entrypoint2.sh +++ /dev/null @@ -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 From 1c5723352e2f02897f2de3fdd34cfad0f9b72229 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:10:14 +0300 Subject: [PATCH 37/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 00d1c10..6e4a7a7 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.12 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.13 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 3cb568cb0fde78c59b4526fc5f8b8e5f8fa4227e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:11:29 +0300 Subject: [PATCH 38/58] up --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b334304..904aa0f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,11 +10,11 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -if [ -n "$INPUT_INPUT_FILES" ]; then - export err=0 +if [[ -n "$INPUT_INPUT_FILES" ]]; then + err=0 for file in $INPUT_INPUT_FILES; do echo /app/addlicense -check "$1" "$file" | sh - if [ $? -ne 0]; then + if [[ $? -ne 0]]; then err=$? fi done From 725945bcef95216235e968d50b303a6bc58931dc Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:12:01 +0300 Subject: [PATCH 39/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 6e4a7a7..6e720d9 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.13 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.14 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From d78ba28ab12321ac5d7a403c5204aad7161a14da Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:17:11 +0300 Subject: [PATCH 40/58] up --- entrypoint.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 904aa0f..598f614 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,11 +10,12 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -if [[ -n "$INPUT_INPUT_FILES" ]]; then - err=0 +IFS=' ' +if [ -n "$INPUT_INPUT_FILES" ]; then + err=0 for file in $INPUT_INPUT_FILES; do echo /app/addlicense -check "$1" "$file" | sh - if [[ $? -ne 0]]; then + if [ "$?" -ne 0 ]; then err=$? fi done From 76d62c62466a4ff8e16f34d62bbc26b88dde5df0 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:21:41 +0300 Subject: [PATCH 41/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 6e720d9..690be5e 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.14 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.15 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From e18ef63e052b6af6fc17a4f2b23ed4440278ff7f Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:25:03 +0300 Subject: [PATCH 42/58] up version --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 690be5e..0bc4b67 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v2.15 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v3 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 165216080e40a87781702c77bd5f2c4a3ff4b0e6 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:36:39 +0300 Subject: [PATCH 43/58] up --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 598f614..87aae37 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ -#!/usr/bin/env sh -# Copyright (c) AVROID, Ltd., 2024 +#!/bin/bash sh +# Copyright (c) AVROID, Ltd., 2023 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From d90cd6eda15bb96ce0cfe0923be4495a850f9dab Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:40:37 +0300 Subject: [PATCH 44/58] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 87aae37..2f7266a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,7 +15,7 @@ if [ -n "$INPUT_INPUT_FILES" ]; then err=0 for file in $INPUT_INPUT_FILES; do echo /app/addlicense -check "$1" "$file" | sh - if [ "$?" -ne 0 ]; then + if [ $? -ne 0 ]; then err=$? fi done From ab53a6cbc23065554d92428c209082946b395086 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:41:01 +0300 Subject: [PATCH 45/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 0bc4b67..3ef4a44 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v3 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v4 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 9a33bd7f4fbcaf449df0f7a97e023e0edd48bac3 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:44:30 +0300 Subject: [PATCH 46/58] up --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2f7266a..522c94b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ -#!/bin/bash sh -# Copyright (c) AVROID, Ltd., 2023 +#!/bin/sh +# Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From bc9179d6369300f2812d5f52693d74db8e326030 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:44:54 +0300 Subject: [PATCH 47/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 3ef4a44..15e99e2 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v4 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v5 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From f0d9f1b064afac4147d8b96c9988e718fd54f7a9 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:46:45 +0300 Subject: [PATCH 48/58] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d56f738..33b49d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) AVROID, Ltd., 2024 +# Copyright (c) AVROID, Ltd., 2025 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From c74a77717b3798768fe7c466fc6685005c4aa6fa Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:48:28 +0300 Subject: [PATCH 49/58] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 522c94b..57b4fbb 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,7 +14,7 @@ IFS=' ' if [ -n "$INPUT_INPUT_FILES" ]; then err=0 for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" "$file" | sh + /app/addlicense -check "$1" "$file" if [ $? -ne 0 ]; then err=$? fi From bb242cecb40ac6b2bd28da8f85279df6e8a6b182 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:48:53 +0300 Subject: [PATCH 50/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 15e99e2..65c00a0 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v5 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v6 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 6799e043549cdb684c88a442d84eca54ac745cc4 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:49:42 +0300 Subject: [PATCH 51/58] up --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 57b4fbb..4c9ae04 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,6 +15,7 @@ if [ -n "$INPUT_INPUT_FILES" ]; then err=0 for file in $INPUT_INPUT_FILES; do /app/addlicense -check "$1" "$file" + echo $? if [ $? -ne 0 ]; then err=$? fi From c2f21a0a66c7fbe6f78bbf50780a7cbbfb279ffd Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:50:01 +0300 Subject: [PATCH 52/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 65c00a0..3584c0d 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v6 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v7 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 07f8276f0c5ef6b3dad25b9fad29a74661d7b163 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:51:27 +0300 Subject: [PATCH 53/58] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4c9ae04..6789313 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,9 +15,9 @@ if [ -n "$INPUT_INPUT_FILES" ]; then err=0 for file in $INPUT_INPUT_FILES; do /app/addlicense -check "$1" "$file" - echo $? if [ $? -ne 0 ]; then err=$? + echo $err fi done exit $err From 75c1add22e51aa749fd5b6f47e4ec5c58c039199 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:51:49 +0300 Subject: [PATCH 54/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 3584c0d..02f8415 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v7 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v8 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 08d94060ed7b0d9d71d4c4b6bf2501df72cb1174 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:54:09 +0300 Subject: [PATCH 55/58] up --- .gitea/workflows/check-license.yml | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 02f8415..8a72d94 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v8 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v9 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: diff --git a/entrypoint.sh b/entrypoint.sh index 6789313..272ddee 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,7 +16,7 @@ if [ -n "$INPUT_INPUT_FILES" ]; then for file in $INPUT_INPUT_FILES; do /app/addlicense -check "$1" "$file" if [ $? -ne 0 ]; then - err=$? + err=1 echo $err fi done From 70649e125d3b3eb17d3f14f56930c4a5093f2b21 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:55:12 +0300 Subject: [PATCH 56/58] up --- entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 272ddee..c1c5392 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,10 +14,9 @@ IFS=' ' if [ -n "$INPUT_INPUT_FILES" ]; then err=0 for file in $INPUT_INPUT_FILES; do - /app/addlicense -check "$1" "$file" + echo /app/addlicense -check "$1" "$file" | sh if [ $? -ne 0 ]; then err=1 - echo $err fi done exit $err From a4eb51bf98656112c742a4607fed5d79a6353186 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:56:22 +0300 Subject: [PATCH 57/58] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 8a72d94..2967bea 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v9 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v10 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 28efaf2d2b49af1694449dc12d42cf4a4de85da4 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Wed, 22 May 2024 17:59:25 +0300 Subject: [PATCH 58/58] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 33b49d8..d56f738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) AVROID, Ltd., 2025 +# Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission.