* New Crowdin translations by Github Action * Remove bad translations * Remove broken translations * Remove more broken files * Remove broken translation * Remove broken translations * Remove broken translations * Add english versions of broken translations Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2.6 KiB
title, intro, product, versions
| title | intro | product | versions | ||||
|---|---|---|---|---|---|---|---|
| Disabling and enabling a workflow | You can disable and re-enable a workflow using {% data variables.product.prodname_dotcom %} or the REST API. | {% data reusables.gated-features.actions %} |
|
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. You can easily re-enable the workflow again on {% data variables.product.prodname_dotcom %}. You can also disable and enable a workflow using the REST API. For more information, see the "Actions REST API."
Temporarily disabling a workflow can be useful in many scenarios. These are a few examples where disabling a workflow might be helpful:
- A workflow error that produces too many or wrong requests, impacting external services negatively.
- A workflow that is not critical and is consuming too many minutes on your account.
- A workflow that sends requests to a service that is down.
- Workflows on a forked repository that aren't needed (for example, scheduled workflows).
{% warning %}
Warning: {% data reusables.actions.scheduled-workflows-disabled %}
{% endwarning %}
Disabling a workflow
You can manually disable a workflow so that it won't execute any workflow runs. A disabled workflow is not deleted, and can be re-enabled.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.actions-tab %}
- In the left sidebar, click the workflow you want to disable.

- Click {% octicon "kebab-horizontal" aria-label="The horizontal kebab icon" %}.

- Click Disable workflow.
The disabled workflow is marked {% octicon "stop" aria-label="The stop icon" %} to indicate its status. 
Enabling a workflow
You can re-enable a workflow that was previously disabled.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.actions-tab %}

