Github actions to publish coverage in coverall always displays "unknown" badge - github-actions

I followed this link to add Github Actions.
I see the actions are getting executed without any error
But in coveralls.io dashboard, the badge is always unknown.
I tried many combinations in github actions still couldnt get the valid coverage badge.
https://coveralls.io/github/kubernetes-sigs/ibm-vpc-block-csi-driver
https://github.com/kubernetes-sigs/ibm-vpc-block-csi-driver

I got where I went wrong.
https://github.com/mattn/goveralls/issues/202
Working as expected when PR got merged

Related

GitHub action status badge showing No Status

I'm attempting to add a badge to my GitHub repo showing the status of unit tests. I followed the guide, shown here, and produced the following change to my repo:
[![Unit Tests Status](https://github.com/xefino/goutils/workflows/Unit%20Tests/badge.svg)](https://github.com/xefino/goutils/actions)
However, when I navigate to the repo's page on GitHub, I see that the action shows "No Status". I understand, from this question, that the name described in the workflow's YAML file has to match the URL, which mine does. So I'm having trouble understanding why I'm not seeing a status on the badge. Does anyone have any information on this?
I discovered the issue here. My URL was not actually correct, not because of some typo, but because the format had changed. So, doing this worked:
[![Unit Tests Status](https://github.com/xefino/goutils/actions/workflows/test.yml/badge.svg)](https://github.com/xefino/goutils/actions)

How to access GitHub action output in a badge

I have a GitHub action workflow that outputs a number and I want to display that in a badge.
Using https://github.com/username/reponame/actions/workflows/myaction.yml/badge.svg I get a red or green failing/success badge but I want to display the number of failures instead, which the workflow outputs into the "errors" output variable.
How can I access that variable in a badge?
There are few options in Github actions marketplace
Bring Your Own Badge - https://github.com/marketplace/actions/bring-your-own-badge
BYOB is a GitHub Action to create badges dynamically based off of GitHub Actions' results, allowing for extremely versatile and easily-maintainable badges.
If you want to use https://shields.io/, consider Dynamic Badges - https://github.com/marketplace/actions/dynamic-badges
This action allows you to create badges for your README.md with shields.io which may change with every commit. To do this, this action does not need to push anything to your repository!
In a subsequent job (step) in the same workflow you could.
I think you want to use your own badge using e.g. https://img.shields.io.
I image you will update e.g. the README file every time the actions are finished, the updating step will be part of the workflow. The transfer of output could be done like here Using output from a previous job in a new one in a GitHub Action.
You will append e.g. the README with a proper svg [![](https://img.shields.io/badge/TEXT-NUMBER-COLOR?style=flat)](some url).
I created an action to generate a badge from a workflow:
Build-A-Badge - https://github.com/marketplace/actions/build-a-badge
As other users have pointed out, I didn't want any external dependencies or to create new branches on the main repo. So the workaround I used is to store the badge data in the Wiki, which is a separate repository.

How to check if an issue has no labels in a Github workflow

Right now I'm trying to write a workflow for Github Actions where any issue without any labels is closed automatically.
For the closing part, I already have found https://github.com/marketplace/actions/close-issue
But I'm struggling to find any way to check if github.event.issue.labels is empty. Even if I search for "github workflow check array empty", nothing turns up.
Does anyone know a solution?
I found a solution by checking for join(github.event.issue.labels) == ''.

Is there a way to delete a project on readthedocs.org?

I'm getting started with readthedocs.{org,io} and created a project in error that I'd now like to delete. I've looked at the various things I can do to a project and am not seeing any buttons labeled "Delete" and I'm not finding any documentation about deleting incorrect projects in the support pages.
Is this just a feature that hasn't been implemented yet?
Thanks!
If you are still in need of an answer: Under [cog]Admin button, scroll all the way to the bottom and next to Save is a Delete Project option.

Jenkins can't generate HTML reports with htmlpublisher

I'm having a heck of a time trying to publish any HTML report with htmlpublisher.
My input looks like this:
And the 404 looks like this:
The report is definitely generated in build/. I've visually compared my config.xml file to a known working example and it's apparently the same. The entry in jobs/ is there, with the correct name and documentation.
I can't figure out what I'm doing wrong. I've checked the "keep past HTML reports" box, unchecked it, played with the paths, read the (poor) documentation but I can't seem to get it working. Can anyone help?
What version of Jenkins are you running? I'm seeing this issue on all of my projects since updating to 1.529. The files are being copied to jobs/ correctly as you mentioned.
The answer you accepted is incorrect and contradicts the documentation at https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin
EDIT: The issue has been resolved in 1.530: https://jenkins-ci.org/changelog
I've updated and I'm not seeing 404s anymore.
The developers of Jenkins has confirmed that this issue is related to the version 1.529 and it is solved in 1.530.