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

View File

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

View File

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