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 Aug 13, 2021
1 parent 7f6973e commit 5a32179
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# codacy-coverage-reporter action
# Codacy Coverage Reporter GitHub Action

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/db5eda4c50b24c008b2c19f1117c9cef)](https://www.codacy.com/gh/codacy/codacy-coverage-reporter-action/dashboard?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-coverage-reporter-action&utm_campaign=Badge_Grade)

> 🤖 Automated multi-language coverage reporter for Codacy
Expand All @@ -20,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
name: codacy-coverage-reporter
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
Expand All @@ -34,10 +36,10 @@ jobs:
## Workflow options

Change these options in the workflow `.yml` file to meet your GitHub project needs.
Change these options in the workflow `.yml` file to meet your GitHub project needs:

| Setting | Description | Default value |
| ------------------ | ------------------------------------------------ | ------------------------------------- |
| `api-token` | An account API token | `${{ secrets.CODACY_API_TOKEN }}` |
| `project-token` | The project API token | `${{ secrets.CODACY_PROJECT_TOKEN }}` |
| `coverage-reports` | Optional Comma separated list of reports to send | `''` |
| Setting | Description | Recommended value |
| ------------------ | -------------------------------------------------------------------------------------- | ------------------------------------- |
| `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 | `''` |
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ 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
bash <(curl -Ls https://coverage.codacy.com/get.sh) report $auth $params --partial &&\
bash <(curl -Ls https://coverage.codacy.com/get.sh) final $auth
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) report $auth $params --partial &&\
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/master/get.sh) final $auth

0 comments on commit 5a32179

Please sign in to comment.