Giter VIP home page Giter VIP logo

Comments (3)

pablobaldez avatar pablobaldez commented on June 7, 2024 1

@cicirello thank you for your response. I just added the EndBug/add-and-commit@v7 and it's working now.

from jacoco-badge-generator.

cicirello avatar cicirello commented on June 7, 2024

@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.

cicirello avatar cicirello commented on June 7, 2024

@pablobaldez great.

from jacoco-badge-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.