diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6b3f67d..9027e55 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -46,25 +46,6 @@ jobs: run: | go test -v ./... -coverprofile coverage.out -coverpkg ./... go tool cover -func coverage.out -o coverage.out # Replaces coverage.out with the analysis of coverage.out - - name: Go Coverage Badge - uses: tj-actions/coverage-badge-go@v1 - if: ${{ runner.os == 'Linux' }} # Runs this on only one of the ci builds. - with: - green: 80 - filename: coverage.out - - - uses: stefanzweifel/git-auto-commit-action@v4 - id: auto-commit-action - with: - commit_message: Apply Code Coverage Badge - skip_fetch: true - skip_checkout: true - file_pattern: ./README.md - - - name: Push Changes - if: steps.auto-commit-action.outputs.changes_detected == 'true' - uses: ad-m/github-push-action@master - with: - github_token: ${{ github.token }} - branch: ${{ github.ref }} + - name: Update coverage report + uses: ncruces/go-coverage-report@main