loading...

Generate GitHub Actions Badge from Command Line

azu profile image azu ・1 min read

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")

This badge spec is here.

Install

Install with npm:

npm install github-actions-badge --global

Usage

Usage
  $ github-actions-badge

Options
  --format "markdown", "json"

Examples
  # Copy GitHub Action as Markdown format
  $ github-actions-badge | pbcopy

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)

Source

Posted on by:

azu profile

azu

@azu

JavaScript/ECMAScript/textlint/secretlint

Discussion

markdown guide