Many good source code repositories on GitHub use badges on their main page to display the status of various tests that have been completed on the repositories. Similarly, in this recipe, we will add an action status summary to our repository to inform our visitors and users about the current workflow status:
- Sign in to your GitHub account and select a repository where you have maintainer access. In our example, we are using the fork of the k8sdevopscookbook/python-flask-docker project.
- Edit the README.md file in the top directory of your repository.
- Add the link to the badge by following the format https://github.com/{owner}/{repo}/workflows/{workflow_name}/badge.svg, as shown in the following example:
[![Actions Status](https://github.com/muratkars/python-flask-docker/workflows/.github/workflows/dockerpush.yml/badge.svg)