Comments (3)
@cicirello thank you for your response. I just added the EndBug/add-and-commit@v7
and it's working now.
from jacoco-badge-generator.
@pablobaldez I looked at your workflow. And it doesn't look like you have a step to commit and push the badges. The jacoco-badge-generator doesn't commit the badges. There are a variety of ways that you can do this. The sample workflows show a couple of these. Example workflow 1 has a step (next to the last step) that uses git directly with a simple shell script. Example workflow 2 uses another action for this (next to the last step), specifically, the EndBug/add-and-commit action.
Here are just those steps from the sample workflows.
With a shell script (fill in missing details... your name and email):
- name: Commit the badge (if it changed)
run: |
if [[ `git status --porcelain *.svg` ]]; then
git config --global user.name 'YOUR NAME HERE'
git config --global user.email '[email protected]'
git add -A *.svg
git commit -m "Autogenerated JaCoCo coverage badge"
git push *.svg
fi
Or with the EndBug/add-and-commit action:
- name: Commit and push the badge (if it changed)
uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
message: 'commit badge'
add: '*.svg'
Let me know how one of these works out for you.
from jacoco-badge-generator.
@pablobaldez great.
from jacoco-badge-generator.
Related Issues (20)
- Feature Req: Support glob to find jacoco csv files in multi module projects HOT 4
- Jacoco report not generated when using Java 17 HOT 2
- No Jacoco report with Java 17 HOT 2
- Feature Req: Badge for multi-module Maven project HOT 3
- Option to suppress logging output to workflow job summary
- Feature Req: edit workflow summary values HOT 5
- Update Python to 3.12 in CI/CD workflows when running unit tests
- Matrix testing Python versions for unit tests and CLI mode
- Feature Req: How to use directly without github action? HOT 2
- BUG: An extra __pycache__ file with root permission will break the workflow HOT 3
- Feature request: absolute path for jacoco-csv-file HOT 5
- Sample badges not showing in GitHub Marketplace listing
- Refactor main block to extract a main function
- Add alternate entry point for running as command-line utility outside of GitHub Actions
- Workflow to publish package to PyPi during release for CLI usage
- Feature Req: Generate badges from JaCoCo reports in xml format HOT 7
- Replace the use of GitHub Action's deprecated set-output HOT 7
- Output a GitHub Actions workflow job summary
- Replacement for set-output may break some self-hosted cases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jacoco-badge-generator.