Schneegans/dynamic-badges-action

The message contain: message: files] files] files] files] files] files] files] files] 21.4%

tvluongict opened this issue · 4 comments

Hi,
I don't know why after running the message is
label: Test Coverage
message: files] files] files] files] files] files] files] files] 21.4%
color: orange
namedLogo: jest
host: https://api.github.com/gists/
forceUpdate: false

Can you help me?

Hi there! Thanks for the report, but without a link to your workflow file or at least a minimal example workflow which can reproduce your issue, I will have no way to guess the reason for this behaviour...

Thanks @Schneegans , This is my workflow file
Screen Shot 2023-11-14 at 08 20 35

Well, that's weird. I cannot spot any issue here. Have you tried for instance to

  • output the value of COVERAGE during the action run? Just doing an echo $COVERAGE after writing to the env file should print the value to the action output log?
  • Maybe you could also make sure that $GITHUB_ENV contains the right thing by printing this as well.
  • Using a fixed value for the message parameter? I would expect that the action works if you put message: 42% in there, right? If so, there's definitely something wrong with the environment variable...