Skip to content

Commit 5866f83

Browse files
feat: build for release
1 parent 31721d7 commit 5866f83

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Diff for: README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
3939
Change these options in the workflow `.yml` file to meet your GitHub project needs:
4040

41-
| Setting | Description | Recommended value |
42-
| ------------------ | -------------------------------------------------------------------------------------- | ------------------------------------- |
43-
| `api-token` | [Account API token](https://docs.codacy.com/codacy-api/api-tokens/#account-api-tokens) | `${{ secrets.CODACY_API_TOKEN }}` |
44-
| `project-token` | [Project API token](https://docs.codacy.com/codacy-api/api-tokens/#project-api-tokens) | `${{ secrets.CODACY_PROJECT_TOKEN }}` |
45-
| `coverage-reports` | Optional comma-separated list of reports to send | `''` |
41+
| Setting | Description | Recommended value |
42+
| --------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------- |
43+
| `api-token` | [Account API token](https://docs.codacy.com/codacy-api/api-tokens/#account-api-tokens) | `${{ secrets.CODACY_API_TOKEN }}` |
44+
| `project-token` | [Project API token](https://docs.codacy.com/codacy-api/api-tokens/#project-api-tokens) | `${{ secrets.CODACY_PROJECT_TOKEN }}` |
45+
| `coverage-reports` | Optional comma-separated list of reports to send | `''` |
46+
| `force-coverage-parser` | Optionally force using a specific coverage report parser | `''` |

Diff for: 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+
force-coverage-parser:
19+
description: 'Optionally force using a specific coverage report parser'
20+
required: false
1821
runs:
1922
using: "composite"
2023
steps:
@@ -47,6 +50,7 @@ runs:
4750
auth=''
4851
if [ -n "${{ inputs.api-token }}" ]; then auth="--api-token ${{ inputs.api-token }} --organization-provider $ORGANIZATION_PROVIDER --username $OWNER_NAME --project-name $REPOSITORY_NAME"; fi
4952
if [ -n "${{ inputs.project-token }}" ]; then auth="--project-token ${{ inputs.project-token }}"; fi
53+
if [ -n "${{ inputs.force-coverage-parser }}" ]; then force_parser="--force-coverage-parser ${{ inputs.force-coverage-parser }}"; else force_parser=""; fi
5054
51-
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) report $auth $params --partial &&\
55+
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) report $force_parser $auth $params --partial &&\
5256
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) final $auth

0 commit comments

Comments
 (0)