refactoring some param

This commit is contained in:
Rustam Tagaev
2024-04-12 11:23:09 +03:00
parent 195a853063
commit cabbb1d6a0
3 changed files with 6 additions and 6 deletions

View File

@@ -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"

View File

@@ -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 }}

View File

@@ -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" .