Skip to content

Commit

Permalink
test: fix badge generation bug (#56)
Browse files Browse the repository at this point in the history
test: fix badge generation bug
  • Loading branch information
sshusainTRI authored Nov 11, 2021
1 parent 8a3e914 commit ccf67e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ jobs:
git config --local user.name "github-actions[bot]"
git add docs/coverage.svg
git commit -m "test: update coverage.svg"
git reset --soft HEAD~2 &&
git commit
git reset --soft HEAD~2
# shellcheck disable=SC1083 # code is irrelevant because git needs this literal
git commit -m "$(git log --format=%B --reverse HEAD..HEAD@{1})"
- name: Push code coverage badge
if: ${{ steps.changed_files.outputs.files_changed == 'true' && github.event_name != 'pull_request'}}
uses: ad-m/github-push-action@master
Expand All @@ -58,4 +59,4 @@ jobs:
if: ${{github.event_name == 'pull_request' && steps.coverage-installer.outputs.coverageScore < env.COVERAGE_TOTAL}}
run: |
echo "cov total fail ${{ steps.coverage-installer.outputs.coverageScore }}"
exit 1
exit 1

0 comments on commit ccf67e7

Please sign in to comment.