diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index c831750..8ed0bee 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -28,4 +28,4 @@ jobs: - name: Check license uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@feature/DO-169/start_project with: - exclude_config: exclude.txt + exclude_pattern: "-ignore **/**.go -ignore **/**/**.ts" diff --git a/action.yml b/action.yml index 3e72ecc..69fe4bc 100644 --- a/action.yml +++ b/action.yml @@ -9,12 +9,12 @@ name: 'Addlicense action' description: 'Checks license and notify about missing license headers' inputs: - exclude_config: - description: 'Config that contains exclude files' + exclude_pattern: + description: 'Pattern for exclude files' required: false outputs: runs: using: 'docker' image: 'Dockerfile' args: - - ${{ inputs.exclude_config }} + - ${{ inputs.exclude_pattern }} diff --git a/entrypoint.sh b/entrypoint.sh index 831899e..e261316 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,5 +11,5 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files no has license:" echo "===================================" -/app/addlicense -check . -echo "$1" +/app/addlicense -check "$1" . +