refactoring some param
This commit is contained in:
@@ -28,4 +28,4 @@ jobs:
|
|||||||
- name: Check license
|
- name: Check license
|
||||||
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@feature/DO-169/start_project
|
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@feature/DO-169/start_project
|
||||||
with:
|
with:
|
||||||
exclude_config: exclude.txt
|
exclude_pattern: "-ignore **/**.go -ignore **/**/**.ts"
|
||||||
|
|||||||
@@ -9,12 +9,12 @@
|
|||||||
name: 'Addlicense action'
|
name: 'Addlicense action'
|
||||||
description: 'Checks license and notify about missing license headers'
|
description: 'Checks license and notify about missing license headers'
|
||||||
inputs:
|
inputs:
|
||||||
exclude_config:
|
exclude_pattern:
|
||||||
description: 'Config that contains exclude files'
|
description: 'Pattern for exclude files'
|
||||||
required: false
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
args:
|
args:
|
||||||
- ${{ inputs.exclude_config }}
|
- ${{ inputs.exclude_pattern }}
|
||||||
|
|||||||
@@ -11,5 +11,5 @@
|
|||||||
echo "Processing event '$GITHUB_EVENT_NAME'"
|
echo "Processing event '$GITHUB_EVENT_NAME'"
|
||||||
echo "List of files no has license:"
|
echo "List of files no has license:"
|
||||||
echo "==================================="
|
echo "==================================="
|
||||||
/app/addlicense -check .
|
/app/addlicense -check "$1" .
|
||||||
echo "$1"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user