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 disable a workflow in a GitHub repository. This is useful when you want to temporarily stop a workflow from running without deleting the workflow file.
Estimated Duration: 10-15 minutes
Open your browser and go to your GitHub repository where the workflow is located.
Once in your repository, click on the Actions tab at the top of the page.
Click on the workflow you want to disable.
From the dropdown menu, click on Disable workflow.
Once the workflow is disabled, you will see a confirmation message indicating that the workflow has been disabled.
To confirm, try pushing a change or triggering the event the workflow was tied to. You should see that the workflow does not run.
Then, click on the Enable workflow button.
You will see a confirmation message indicating that the workflow is now enabled and will run again when the specified events occur.
In this lab, you learned how to disable a workflow in a GitHub repository. This is useful when you want to temporarily stop a workflow from running without deleting the workflow file. You also learned how to re-enable the workflow when needed.