Skip to content

Commit 89d6c85

Browse files
feat: build for release
1 parent 5866f83 commit 89d6c85

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ Change these options in the workflow `.yml` file to meet your GitHub project nee
4343
| `api-token` | [Account API token](https://docs.codacy.com/codacy-api/api-tokens/#account-api-tokens) | `${{ secrets.CODACY_API_TOKEN }}` |
4444
| `project-token` | [Project API token](https://docs.codacy.com/codacy-api/api-tokens/#project-api-tokens) | `${{ secrets.CODACY_PROJECT_TOKEN }}` |
4545
| `coverage-reports` | Optional comma-separated list of reports to send | `''` |
46+
| `language` | Optionally force associating a language with your coverage report | `''` |
4647
| `force-coverage-parser` | Optionally force using a specific coverage report parser | `''` |

action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ inputs:
1515
description: 'Optional comma separated list of coverage reports to send to Codacy'
1616
required: false
1717
default: ''
18+
language:
19+
description: 'Optionally force associating a language with your coverage report'
20+
required: false
1821
force-coverage-parser:
1922
description: 'Optionally force using a specific coverage report parser'
2023
required: false
@@ -51,6 +54,7 @@ runs:
5154
if [ -n "${{ inputs.api-token }}" ]; then auth="--api-token ${{ inputs.api-token }} --organization-provider $ORGANIZATION_PROVIDER --username $OWNER_NAME --project-name $REPOSITORY_NAME"; fi
5255
if [ -n "${{ inputs.project-token }}" ]; then auth="--project-token ${{ inputs.project-token }}"; fi
5356
if [ -n "${{ inputs.force-coverage-parser }}" ]; then force_parser="--force-coverage-parser ${{ inputs.force-coverage-parser }}"; else force_parser=""; fi
57+
if [ -n "${{ inputs.language }}" ]; then lang="--language ${{ inputs.language }}"; else lang=""; fi
5458
55-
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) report $force_parser $auth $params --partial &&\
59+
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) report $lang $force_parser $auth $params --partial &&\
5660
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) final $auth

0 commit comments

Comments
 (0)