Skip to content

Commit

Permalink
feat: build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 19, 2022
1 parent 5866f83 commit 89d6c85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -43,4 +43,5 @@ Change these options in the workflow `.yml` file to meet your GitHub project nee
| `api-token` | [Account API token](https://docs.codacy.com/codacy-api/api-tokens/#account-api-tokens) | `${{ secrets.CODACY_API_TOKEN }}` |
| `project-token` | [Project API token](https://docs.codacy.com/codacy-api/api-tokens/#project-api-tokens) | `${{ secrets.CODACY_PROJECT_TOKEN }}` |
| `coverage-reports` | Optional comma-separated list of reports to send | `''` |
| `language` | Optionally force associating a language with your coverage report | `''` |
| `force-coverage-parser` | Optionally force using a specific coverage report parser | `''` |
6 changes: 5 additions & 1 deletion action.yml
Expand Up @@ -15,6 +15,9 @@ inputs:
description: 'Optional comma separated list of coverage reports to send to Codacy'
required: false
default: ''
language:
description: 'Optionally force associating a language with your coverage report'
required: false
force-coverage-parser:
description: 'Optionally force using a specific coverage report parser'
required: false
Expand Down Expand Up @@ -51,6 +54,7 @@ runs:
if [ -n "${{ inputs.api-token }}" ]; then auth="--api-token ${{ inputs.api-token }} --organization-provider $ORGANIZATION_PROVIDER --username $OWNER_NAME --project-name $REPOSITORY_NAME"; fi
if [ -n "${{ inputs.project-token }}" ]; then auth="--project-token ${{ inputs.project-token }}"; fi
if [ -n "${{ inputs.force-coverage-parser }}" ]; then force_parser="--force-coverage-parser ${{ inputs.force-coverage-parser }}"; else force_parser=""; fi
if [ -n "${{ inputs.language }}" ]; then lang="--language ${{ inputs.language }}"; else lang=""; fi
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) report $force_parser $auth $params --partial &&\
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) report $lang $force_parser $auth $params --partial &&\
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) final $auth

0 comments on commit 89d6c85

Please sign in to comment.