diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d99186a..22e5f98 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -37,4 +37,15 @@ jobs: with: # Configure action by specifying input parameters individually (option 2) profile: cover.out - threshold-total: 95 \ No newline at end of file + threshold-total: 95 + + - name: make coverage badge + uses: action-badges/core@0.2.2 + # if: contains(github.ref, 'main') + with: + label: coverage + message: ${{ steps.coverage.outputs.badge-text }} + message-color: ${{ steps.coverage.outputs.badge-color }} + file-name: coverage.svg + badge-branch: badges ## orphan branch where badge will be committed + github-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file