Adding GitHub action workflow status badge to your repository

Andres Sandoval
2 min readApr 26, 2020

In the previous tutorials, I wrote about how to add GitHub actions to your projects. Now we are going to add a status badge to our GitHub repo README.md. You can have a badge for each of your GitHub Actions CI workflows. The first step is to set up a GitHub workflow. Example code.

← It would look like this badge

You need to add below snippet to your README.md. Change names for you Project:

[![YourActionName Actions Status](https://github.com/{userName}/{repoName}/workflows/{workflowName}/badge.svg)](https://github.com/{userName}/{repoName}/actions)

And push your code changes. Once the PR is merged, you will see the badge in your repo’s README.md

Example:

[![Android-master Actions Status](https://github.com/AndreSand/BornInApp/workflows/android-master/badge.svg)](https://github.com/AndreSand/BornInApp/actions)

Second workflow:

[![Android-master Actions Status](https://github.com/AndreSand/BornInApp/workflows/android/badge.svg)](https://github.com/AndreSand/BornInApp/actions)

Remember to you use the workflow name in the above URL, “is not the .yml file name” is the name you configured inside the .yml file. It took me some hours to figure this out. TIL I have to name the file and the GitHub actions name configuration the same.

--

--