Github Actions 徽章不显示状态

5 workflow github badge github-actions

我已经在我的存储库上运行了很多次 github 操作,没有出现问题,并且在我的存储库之一上使用相同的脚本,它显示 \xe2\x80\x9cno status\xe2\x80\x9d。\n存储库是:https://github。 com/aurelpere/python-planif

\n

我不明白为什么工作流程正确运行时它没有显示状态\xe2\x80\xa6\n任何帮助都会很棒\n谢谢

\n

请注意,我的 svg 徽章在https://github.com/aurelpere/python-planif/workflows/CI/badge.svg和https://github.com/aurelpere/python-planif/workflows/上也显示“无状态” Unittests/badge.svg .\n(遵循本文中的内容:https://github.community/t/badge-shows-no-status-and-no-status-mismatch- Between-the-filepath-vs- name-usage/16907或在这篇文章中Github Actions 徽章显示“无状态”)

\n

我还尝试在另一个新存储库( https://github.com/aurelpere/python-geo Thermal ---power-to-gas/ \n)中复制代码,它是相同的,徽章显示没有状态,所以它与这里的快进合并问题无关https://github.community/t/workflow-badge-no-status/17280/2

\n

编辑:用下面的答案解决了,但如果您尝试点击链接,我删除了最初的存储库并只保留了最新的存储库

\n

Com*_*wan 2

由于某种原因,您必须使用工作流程名称而不是 yaml 文件名。这对我有用

<a href="https://github.com/pgonzaleznetwork/forcemula/actions/workflows/nodejs.yaml">
    <img src="https://github.com/pgonzaleznetwork/forcemula/workflows/Tests/badge.svg?style=flat" />
</a>
Run Code Online (Sandbox Code Playgroud)