Skip to content

Commit 166037e

Browse files
authored
Merge pull request #69 from codacy/fix/add-support-for-upload-batch-size-CY-5756
Update action.yml to support --upload-batch-size parameter
2 parents 29e74c9 + 44a0029 commit 166037e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ inputs:
4343
upload:
4444
required: false
4545
description: "Upload analysis results to Codacy"
46+
upload-batch-size:
47+
required: false
48+
description: "Size (in number of results) of result batches to be uploaded to Codacy"
4649
fail-if-incomplete:
4750
required: false
4851
description: "Fail the analysis if any tool fails to run"
@@ -223,7 +226,7 @@ runs:
223226
224227
- name: "Set Codacy CLI version"
225228
shell: bash
226-
run: echo "CODACY_ANALYSIS_CLI_VERSION=7.0.5" >> $GITHUB_ENV
229+
run: echo "CODACY_ANALYSIS_CLI_VERSION=7.5.0" >> $GITHUB_ENV
227230
- name: "Set script path environment variable"
228231
shell: bash
229232
run: echo "CLI_SCRIPT_PATH=${{ github.action_path }}/codacy-analysis-cli.sh" >> $GITHUB_ENV
@@ -254,6 +257,7 @@ runs:
254257
$(if [ -n "${{ inputs.tool-timeout }}" ]; then echo "--tool-timeout ${{ inputs.tool-timeout }}"; fi) \
255258
$(if [ "${{ inputs.skip-uncommitted-files-check }}" = "true" ]; then echo "--skip-uncommitted-files-check"; fi) \
256259
$(if [ "${{ inputs.upload }}" = "true" ]; then echo "--upload"; fi) \
260+
$(if [ -n "${{ inputs.upload-batch-size }}" ]; then echo "--upload-batch-size ${{ inputs.upload-batch-size }}"; fi) \
257261
$(if [ "${{ inputs.fail-if-incomplete }}" = "true" ]; then echo "--fail-if-incomplete"; fi) \
258262
$(if [ "${{ inputs.allow-network }}" = "true" ]; then echo "--allow-network"; fi) \
259263
$(if [ "${{ inputs.force-file-permissions }}" = "true" ]; then echo "--force-file-permissions"; fi) \

0 commit comments

Comments
 (0)