我以前也遇到过这个问题,尝试使用Action的名称而不是工作流文件名。
以下代码片段应该适用于您:
[![CI](https://github.com/sunnamed434/UIElementsUnturned/workflows/CI/badge.svg
)](https://github.com/sunnamed434/UIElementsUnturned/actions/workflows/NET_Framework_CI.yml)
第一个URL应该没有/actions,像这样:https://github.com/thereapr/reincarnated_mod/workflows/CI/badge.svg
我遇到了同样的问题,但文件名和工作流名称都对我无效 :(
[![CI](https://github.com/thereapr/reincarnated_mod/actions/workflows/gradle.yml/badge.svg)](https://github.com/thereapr/reincarnated_mod/actions/workflows/gradle.yml)
[![CI](https://github.com/thereapr/reincarnated_mod/actions/workflows/CI/badge.svg)](https://github.com/thereapr/reincarnated_mod/actions/workflows/gradle.yml)