-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update coverage badge in docs too
Signed-off-by: Mahendra Paipuri <[email protected]>
- Loading branch information
1 parent
b4c18f8
commit aaf094e
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|