Skip to content

Commit

Permalink
ci: Update coverage badge in docs too
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jul 4, 2024
1 parent b4c18f8 commit aaf094e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/step_tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,26 @@ jobs:
# Create/Update badge
gobadge -target README.md -filename coverage.out -link https://github.com/mahendrapaipuri/ceems/actions/workflows/ci.yml?query=branch%3Amain
gobadge -target website/docs/00-introduction.md -filename coverage.out -link https://github.com/mahendrapaipuri/ceems/actions/workflows/ci.yml?query=branch%3Amain
# Check diff on README
git diff README.md
git diff website/docs/00-introduction.md
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v19
id: verify-changed-files
with:
files: README.md
files: |
README.md
website/docs/00-introduction.md
- name: Commit changes
if: steps.verify-changed-files.outputs.files_changed == 'true' && github.ref == 'refs/heads/main'
run: |
git config --local user.email "[email protected]"
git config --local user.name "CEEMS Bot"
git add README.md
git add README.md website/docs/00-introduction.md
git commit -m "chore: Updated coverage badge" -s
- name: Push changes
Expand Down

0 comments on commit aaf094e

Please sign in to comment.