Skip to content

michakfromparis/github-actions-badge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-actions-badge

This is a small AWS lambda that renders a README badge based on the status of your Github Actions workflow. You can add the badge to your README by including:

![Actions Status](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/badge/{owner}/{repo})

where {owner} and {repo} are replaced by the github username and the repository name, respectively. For example, this repository would use:

https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/badge/CultureHQ/github-actions-badge

The badge variants look like:

  • Error
  • Failure
  • Pending
  • Success
  • No Runs

Options

You can pass additional options to the badge through the image URL that will be forwarded on to shields.io (the source for the images). The options are documented on their page.

For instance, if you wanted to change the style to flat-square, you could pass it as a query param as in:

![Actions Status](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/badge/{owner}/{repo}?style=flat-square)

Development

To develop locally, install dependencies with yarn. Then you can run yarn start at the root of the repository to start a local server.

About

A GitHub Actions README badge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%