[BUG] Workflow badge always shows failure if workflow name has dashes maybe?

Hi folks,

I had a workflow that was always reporting failure state even though it was succeeding. The workflow name AND file name were both the same: build-release-containers. The file had the yml extension, though.

Once I changed the workflow name to something more natural, like “Build Releae Containers”, the badge began to properly show the success state.

Maybe a bug?

@ryancole,

I think the root cause is that the status badge does not sync in time with the latest status of the corresponding workflow.

According to my tests, after the latest run completed successfully, I need to wait a moment and refresh (or reopen) the web page, then the status badge can correctly show the latest status.
For example (see here):
Test-syntax-for-GitHub-Actions