Giter VIP home page Giter VIP logo

Comments (7)

erodewald avatar erodewald commented on May 28, 2024 1

Apologies for the delay. I do use the output in a follow-up step. Thanks for offering the fallback patch! 👍

from jacoco-badge-generator.

erodewald avatar erodewald commented on May 28, 2024 1

@cicirello I'm seeing positive results from numerous PRs that are using @v2:

Runner:

Current runner version: '2.294.0'

Action fetch looks good 👍 (confirming that v2 sha points to 2.8.1)

Download action repository 'cicirello/jacoco-badge-generator@v2' (SHA:2dc380ee1533a13cd53ac62743c847842212407b)
##[debug]Download 'https://api.github.com/repos/cicirello/jacoco-badge-generator/tarball/2dc380ee1533a13cd53ac62743c847842212407b' to '/runner/_work/_actions/_temp_593b2a2e-4a3c-473e-a528-f1c46c6cb392/b6cf47c3-a6cb-4fb5-a673-5451f23dfd3c.tar.gz'

Action debug output looks good 👍

::set-output name=coverage::0.9122481442205727
##[debug]steps.jacoco.outputs.coverage='0.9122481442205727'
::set-output name=branches::0.6594202898550725
##[debug]steps.jacoco.outputs.branches='0.6594202898550725'
##[debug]Docker Action run completed with exit code 0

Output usage succeeded as well. 👍

Thanks.

from jacoco-badge-generator.

erodewald avatar erodewald commented on May 28, 2024

Unfortunately, this is going to break usage for self-hosted GHES enterprise organizations that are not on the bleeding edge. I am still on GHES 3.5, which uses runner version 2.294.0 while this requires at least 2.297.0. I am going to have to pin to 2.7.0 if reverting is not possible.

from jacoco-badge-generator.

cicirello avatar cicirello commented on May 28, 2024

@erodewald does your workflow use those outputs in later steps? If not, then it shouldn't break it in your case. I have a check in there if the new environment variable exists. The original purpose of the check was for the case of someone using it as a CLI tool entirely outside of Actions.

If you are using those outputs, I think I can probably use the old set-output if the new environment variable doesn't exist.

from jacoco-badge-generator.

cicirello avatar cicirello commented on May 28, 2024

@erodewald I had some time to look at it, so rather than wait for an answer to my previous question, I assumed that it would likely break things for someone. The newly released version v2.8.1 should fix it. It will use the new approach if GitHub's new environment variable exists, and will otherwise use the deprecated set-output (PR #91).

from jacoco-badge-generator.

cicirello avatar cicirello commented on May 28, 2024

@erodewald let me know if there are any issues with the patch. I had to fake running in actions on my local machine to test it, since any testing on GitHub would pick up the new env file.

from jacoco-badge-generator.

cicirello avatar cicirello commented on May 28, 2024

@erodewald great. Thanks for sharing.

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.