Master GitHub Actions with hands-on labs and exercises. Learn how to automate workflows, run tests, deploy applications, and more using GitHub's powerful automation platform. This repository has everything you need to get started with continuous integration and continuous deployment.
In this lab, you will learn how to display the workflow status badge on a GitHub repository. The workflow status badge shows the status of the latest workflow run, making it easy to monitor the workflow status directly from the README.md
file.
Duration: 10-15 minutes
.github/workflows/
directory.From the dropdown, select “Create status badge.”
GitHub will generate a Markdown snippet for the badge, which will look something like this:

Replace <OWNER>
, <REPO>
, and <WORKFLOW_FILE>
in the URL with the appropriate values for your repository.
<OWNER>
: Your GitHub username or organization name.<REPO>
: Your repository name.<WORKFLOW_FILE>
: The filename of the workflow (e.g., workflow.yml
).README.md
file in the root directory of your repository.Paste the copied badge Markdown snippet into the desired location within the README.md
file. For example:
# Project Name

## Description
A brief description of the project goes here.
"Added GitHub Actions workflow status badge to README"
.main
branch or create a new branch and open a pull request.README.md
file, and you should see the workflow status badge displayed.Here’s an example of what the badge might look like in the README.md
:
# GitHub Actions Workshop
[](https://github.com/prasadhonrao/github-actions-workshop/actions/workflows/intro-simple-workflow.yml)
## About
GitHub Actions Workshop is designed to help you get started with GitHub Actions and learn how to use them to automate your software development workflow.
This is how the badge will appear in the README.md
file:
You can click on the badge to navigate to the workflow page.
Congratulations! You have successfully added a workflow status badge to your GitHub repository. The badge will automatically update whenever the workflow runs, showing the latest status.