DEV Community

azu
azu

Posted on

Generate GitHub Actions Badge from Command Line

I've created github-actions-badge.
It generate GitHub Actions badge Markdown cod from command line.

Actions Status: test

[![Actions Status: test](https://github.com/azu/github-actions-badge/workflows/test/badge.svg)](https://github.com/azu/github-actions-badge/actions?query=workflow%3A"test") 
Enter fullscreen mode Exit fullscreen mode

This badge spec is here.

Install

Install with npm:

npm install github-actions-badge --global 
Enter fullscreen mode Exit fullscreen mode

Usage

Usage $ github-actions-badge Options --format "markdown", "json" Examples # Copy GitHub Action as Markdown format $ github-actions-badge | pbcopy 
Enter fullscreen mode Exit fullscreen mode

Example

$ github-actions-badge [![Actions Status: test](https://github.com/azu/github-actions-badge/workflows/ci/badge.svg)](https://github.com/azu/github-actions-badge/actions?query=workflow%3Aci) 
Enter fullscreen mode Exit fullscreen mode

Source

Top comments (0)