简体   繁体   English

为什么 GitHub 工作流徽章不会在 Jekyll GitHub 页面上呈现?

[英]Why do GitHub workflow badges not render on Jekyll GitHub pages?

My GitHub Pages site is built from the master branch, using my README.md .我的 GitHub Pages 站点是使用我的README.mdmaster分支构建的。 The top of my read-me file is directly below.我的自述文件的顶部就在下面。

![pytest](https://github.com/preritdas/wooster-trading-systems/actions/workflows/pytest.yml/badge.svg)
![coverage-badge](tests/badge.svg)
![version](https://img.shields.io/badge/python-3.10-blue)
![maintenance-status](https://img.shields.io/badge/maintenance-actively--developed-brightgreen.svg)
![firebase](https://github.com/preritdas/wooster-trading-systems/actions/workflows/firebase-hosting-merge.yml/badge.svg)
![pages-build-deployment](https://github.com/preritdas/wooster-trading-systems/actions/workflows/pages/pages-build-deployment/badge.svg)


# :chart_with_upwards_trend: :robot: Wooster Systems :moneybag: :money_with_wings:

This looks just fine in the read-me inside the repository.存储库中的自述文件中看起来很好。 Image below.下图。

在此处输入图像描述

Unfortunately, the workflow status badges don't populate on the Jekyll GitHub Pages site.不幸的是,Jekyll GitHub Pages 站点上没有填充工作流状态标记。 Specifically, the badges that come directly from GitHub don't show, but the rest do.具体来说,直接来自 GitHub 的徽章不会显示,但 rest 会显示。 The ones that don't show are tests , firebase deployment , and pages-build-deployment .没有显示的是testsfirebase deploymentpages-build-deployment A screenshot from the site is below.该网站的屏幕截图如下。

在此处输入图像描述

I'm not sure why this is happening.我不确定为什么会这样。 My hunch is that it has to do with the fact that my repository is private , but what has me confused is the fact that the coverage badge comes from an SVG file directly in my private repository.我的预感是它与我的存储库是私有的事实有关,但让我感到困惑的是,覆盖徽章直接来自我的私有存储库中的 SVG 文件。 This works fine on the site (possibly has to do with "artifacts", though I don't really understand the behavior).这在网站上运行良好(可能与“人工制品”有关,尽管我并不真正理解这种行为)。 If the workflow badges are indeed private, how can I make them display on my site?如果工作流徽章确实是私有的,我怎样才能让它们显示在我的网站上?

The only config file (or file that has anything to do with the GitHub Pages site) is my _config.yml , which has the following contents.唯一的配置文件(或与 GitHub Pages 站点有关的文件)是我的_config.yml ,它具有以下内容。

theme: jekyll-theme-cayman
plugins:
  - jemoji

I installed added jemoji to support the emoji shortcode in my title, which works fine.我安装了添加的jemoji以支持标题中的表情符号短代码,效果很好。

Any help appreciated.任何帮助表示赞赏。

Private repositories are not publicly visible.私有存储库不公开可见。 For security, any requests to them from an account without the right credentials will get a 404, so you can't guess which repositories exist.为了安全起见,没有正确凭据的帐户向他们发出的任何请求都将得到 404,因此您无法猜测存在哪些存储库。

Because the repository isn't available, your workflows and their results aren't public either.由于存储库不可用,您的工作流程及其结果也不公开。 If you want a developer on your team to have the build status, invite them to your private repository.如果您希望团队中的开发人员拥有构建状态,请邀请他们加入您的私有存储库。 If you want your builds to be publicly visible, open source your repository.如果您希望您的构建公开可见,请开源您的存储库。

It can be because this tags are alterated because of github actions, so they update and change on the Repository, Github pages treats different the information so this tags are nos updating when you are accessing the web page.可能是因为 github 操作导致此标签被更改,因此它们在存储库上更新和更改,Github 页面处理不同的信息,因此当您访问 Z2567A5EC970E067AC2C984033 页面时,此标签不会更新。

Live tags from Shields.io doesn't work properly on github pages. Shields.io 的实时标签在 github 页面上无法正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM