@action-badges/core 中文文档教程

发布于 3年前 浏览 19 项目主页 更新于 3年前

action-badges/core

使用 Github Actions

build coverage 版本 许可证 node

操作徽章允许您创建自定义徽章使用 github 操作并将它们托管在您自己的 github 存储库中。

shields.iobadgen.net 等中心化服务不同, action badges 可用于:

  • Generate badges using content in private repositories without hosting and maintaining your own instance of shields or badgen
  • Make badges that need private tokens or secrets to generate the content
  • Make badges that are slow to compute or rely on data that is not available from a HTTP API
  • Generate badges without contacting any external services: compute is handled by github actions, badges are stored in github repo

有两种使用 action-badges/core 的方法。 它可以直接用作 yaml 工作流/复合操作中的 Github 操作,或用作 NPM 库来创建可重用的 javascript 操作。

https://github.com/action-badges/examples 包含一些示例,展示了如何使用多种不同的方法生成动作徽章。

action-badges/core

Serverless badge generation with Github Actions

build coverage version license node

Action badges allows you to create custom badges using github actions and host them in your own github repo.

Unlike centralized services like shields.io and badgen.net, action badges can be used to:

  • Generate badges using content in private repositories without hosting and maintaining your own instance of shields or badgen
  • Make badges that need private tokens or secrets to generate the content
  • Make badges that are slow to compute or rely on data that is not available from a HTTP API
  • Generate badges without contacting any external services: compute is handled by github actions, badges are stored in github repo

There are two ways to use action-badges/core. It can be used directly as a Github Action in yaml workflows/composite actions or as an NPM library to create re-usable javascript actions.

https://github.com/action-badges/examples contains some examples showing how to generate action badges using a number of different methods.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文