Skip to content

Commit

Permalink
Merge pull request #69 from codacy/fix/add-support-for-upload-batch-s…
Browse files Browse the repository at this point in the history
…ize-CY-5756

Update action.yml to support --upload-batch-size parameter
  • Loading branch information
pedrocodacy committed Mar 4, 2022
2 parents 29e74c9 + 44a0029 commit 166037e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Expand Up @@ -43,6 +43,9 @@ inputs:
upload:
required: false
description: "Upload analysis results to Codacy"
upload-batch-size:
required: false
description: "Size (in number of results) of result batches to be uploaded to Codacy"
fail-if-incomplete:
required: false
description: "Fail the analysis if any tool fails to run"
Expand Down Expand Up @@ -223,7 +226,7 @@ runs:
- name: "Set Codacy CLI version"
shell: bash
run: echo "CODACY_ANALYSIS_CLI_VERSION=7.0.5" >> $GITHUB_ENV
run: echo "CODACY_ANALYSIS_CLI_VERSION=7.5.0" >> $GITHUB_ENV
- name: "Set script path environment variable"
shell: bash
run: echo "CLI_SCRIPT_PATH=${{ github.action_path }}/codacy-analysis-cli.sh" >> $GITHUB_ENV
Expand Down Expand Up @@ -254,6 +257,7 @@ runs:
$(if [ -n "${{ inputs.tool-timeout }}" ]; then echo "--tool-timeout ${{ inputs.tool-timeout }}"; fi) \
$(if [ "${{ inputs.skip-uncommitted-files-check }}" = "true" ]; then echo "--skip-uncommitted-files-check"; fi) \
$(if [ "${{ inputs.upload }}" = "true" ]; then echo "--upload"; fi) \
$(if [ -n "${{ inputs.upload-batch-size }}" ]; then echo "--upload-batch-size ${{ inputs.upload-batch-size }}"; fi) \
$(if [ "${{ inputs.fail-if-incomplete }}" = "true" ]; then echo "--fail-if-incomplete"; fi) \
$(if [ "${{ inputs.allow-network }}" = "true" ]; then echo "--allow-network"; fi) \
$(if [ "${{ inputs.force-file-permissions }}" = "true" ]; then echo "--force-file-permissions"; fi) \
Expand Down

0 comments on commit 166037e

Please sign in to comment.