Skip to content

Commit

Permalink
fix badge command
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hutcheon authored and James Hutcheon committed Oct 31, 2023
1 parent f811b10 commit 876a1db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,5 @@ jobs:
threshold-package: 0
threshold-total: 80

- name: make coverage badge
uses: action-badges/core@0.3.0
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 }}"
git-branch: badges
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# glox - A lox interpreter written in Go

![coverage](https://github.com/raw/hutcho66/glox/badges/.badges/main/coverage.svg)

The lox language was developed by Robert Nystrom for the book [Crafting Interpreters](https://craftinginterpreters.com/).

This is a implementation of the language in go, with a few additions:
Expand Down

0 comments on commit 876a1db

Please sign in to comment.