Skip to content

Commit

Permalink
testing new flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DMarinhoCodacy committed Jan 8, 2024
1 parent b1b3c13 commit 35d6c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ runs:
echo "ORGANIZATION_PROVIDER=$(if [[ $GITHUB_SERVER_URL == "https://github.com" ]]; then echo "gh"; else echo "ghe"; fi)" >> $GITHUB_ENV
echo "OWNER_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1)" >> $GITHUB_ENV
echo "REPOSITORY_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2)" >> $GITHUB_ENV
echo "CODACY_REPORTER_VERSION=$(if [ -n "${{ inputs.coverage-reporter-version }}" ]; then COVERAGE_REPORTER_VERSION="${{ inputs.coverage-reporter-version }}"; else COVERAGE_REPORTER_VERSION="master"; fi)" >> $GITHUB_ENV
- name: "Run coverage-reporter"
shell: bash
run: |
Expand All @@ -58,7 +59,6 @@ runs:
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
if [ -n "${{ inputs.coverage-reporter-version }}" ]; then COVERAGE_REPORTER_VERSION="${{ inputs.coverage-reporter-version }}"; else COVERAGE_REPORTER_VERSION="master"; fi
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/$COVERAGE_REPORTER_VERSION/get.sh) report $lang $force_parser $auth $params --partial &&\
bash <(curl -Ls https://raw.githubusercontent.com/codacy/codacy-coverage-reporter/$COVERAGE_REPORTER_VERSION/get.sh) final $auth

0 comments on commit 35d6c77

Please sign in to comment.