Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ inputs:
default: ""
description: >-
Eventual registry address.
eslint_config_path:
required: false
default: ""
description: >-
Path to the ESLint configuration file to use for the analysis. If not provided, the action will rely on the default configuration provided by Codacy CLI V2.

runs:
using: "composite"
Expand All @@ -64,6 +69,10 @@ runs:
if [ "${{ inputs.api_token }}" != "" ]; then
/tmp/codacy-cli-v2 init --api-token ${{inputs.api_token}} --provider ${{inputs.provider}} --organization ${{inputs.owner}} --repository ${{inputs.repository}}
fi
if [ "${{ inputs.eslint_config_path }}" != "" ]; then
/tmp/codacy-cli-v2 init
mv ${{ inputs.eslint_config_path }} ./.codacy/tools-configs/
fi
if [ "${{ inputs.registry }}" != "" ]; then
/tmp/codacy-cli-v2 install -r ${{ inputs.registry }}
else
Expand Down