refactoring some param
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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" .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user