Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create a badge using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)

License

NotificationsYou must be signed in to change notification settings

jaywcjlove/generated-badges

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buy me a coffeeBuild & Deploynpm version

Create a badge using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)

Install

$ npm i generated-badges -g

Command Help

Usage: generated-badges [options] [--help|h]Options:  --version, -v   Show version number.  --help, -h      Displayshelp information.  --output, -o    Output svg image path.  --label, -l     The left label of the badge, usually static.  --labelColor<Color RGB> or<Color Name> (default:'555')  --style         Badges style: flat, classic.  --status, -s    Override default status text.  --scale         Set badge scale (default: 1).  --color, -c<Color RGB> or<Color Name> (default:'blue').'  --gradient, -g  Adding a gradient to a badge.'Example:  generated-badges --output coverage/badges.svg  generated-badges --style classic  generated-badges --color red  generated-badges --gradient c05cff --gradient fa5b37

Github Actions

-run:mkdir -p build-name:Generate Badgesuses:jaywcjlove/generated-badges@mainwith:label:colorstatus:cyanoutput:build/cyan.svg-name:Deployuses:peaceiris/actions-gh-pages@v3with:github_token:xxxxxxxpublish_dir:./build

Available color names:

blue badgescyan badgesgreen badgesyellow badgesred badgespink badgespurple badgesgrey badgesblack badgesgradient badges

Input Parameters

  • label - The left label of the badge, usually static. (default:label)
  • status - The right status as the badge, usually based on results. (default:status)
  • style - Badges style:flat,classic. (defaultclassic)
  • color - An array (comma separated) with hex or named colors of the badge value background. (defaultblue)
  • labelColor - Hex or named color for the label. (default555)
  • output - Output image path. (defaultBADGES.svg)
  • scale - Set badge scale. (default1)
  • gradient - Adding a gradient to a badge. (examplec05cff,fa5b37)

Output Parameters

  • svg svg image string:<svg xmlns.....

Related

Contributors

As always, thanks to our amazing contributors!

Made withgithub-action-contributors.

License

Licensed under the MIT License.

About

Create a badge using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)

Topics

Resources

License

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp