GitHub Actions status badge always show failing with path URL

For example, in this repository, GitHub Actions for GitHub Pages, I put the workflow status badge with workflow name type URL.

https://github.com/peaceiris/actions-gh-pages/workflows/docker-image-ci/badge.svg

That shows “passing” and is expected behavior.

Also, the path type badges are available like the following:

https://github.com/peaceiris/actions-gh-pages/workflows/.github/workflows/docker-image-ci.yml/badge.svg

It always shows “failing”. That seems to be a bug.

1 Like

Hi,

Thanks for your feedback! 

Please remove ‘name’ for your workflow, I copied your repo and the badge for path can display well on my side.

If the name keyword exists for your workflow, please just use workflow name for the badge.

Related link for more info, thanks.

https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository

BadgewithFilePath.png

1 Like