@action-badges/core 中文文档教程
action-badges/core
使用 Github Actions
操作徽章允许您创建自定义徽章使用 github 操作并将它们托管在您自己的 github 存储库中。
与 shields.io 和 badgen.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
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.