Frecuentemente publicamos actualizaciones de nuestra documentación. Es posible que la traducción de esta página esté en curso. Para conocer la información más actual, visita la documentación en inglés. Si existe un problema con las traducciones en esta página, por favor infórmanos.

Disabling and enabling a workflow

You can disable and re-enable a workflow using the GitHub UI, the REST API, or CLI de GitHub.

GitHub Actions se encuentra disponible con GitHub Free, GitHub Pro, GitHub Free para organizaciones, GitHub Team, GitHub Enterprise Cloud, y GitHub One. GitHub Actions no se encuentra disponible para repositorios privados que pertenezcan a cuentas que utilicen planes tradicionales por repositorio.

En este artículo

Note: GitHub-hosted runners are not currently supported on Servidor de GitHub Enterprise. You can see more information about planned future support on the Itinerario público de GitHub.

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 GitHub.

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: To prevent unnecessary workflow runs, scheduled workflows may be disabled automatically. When a public repository is forked, scheduled workflows are disabled by default. In a public repository, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days.

Disabling and enabling workflows with the GitHub UI

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.

  1. En GitHub Enterprise, visita la página principal del repositorio.
  2. Debajo del nombre de tu repositorio, da clic en Acciones.
    Pestaña de acciones en la navegación del repositorio principal
  3. In the left sidebar, click the workflow you want to disable.
    actions select workflow
  4. Click .
    actions kebab menu
  5. Click Disable workflow.
    actions disable workflow
    The disabled workflow is marked to indicate its status.
    actions list disabled workflow

Enabling a workflow

You can re-enable a workflow that was previously disabled.

  1. En GitHub Enterprise, visita la página principal del repositorio.
  2. Debajo del nombre de tu repositorio, da clic en Acciones.
    Pestaña de acciones en la navegación del repositorio principal
  3. In the left sidebar, click the workflow you want to enable.
    actions select disabled workflow
  4. Click Enable workflow.
    actions enable workflow

Disabling and enabling workflows with CLI de GitHub

For information on setting up CLI de GitHub, see "Managing GitHub Actions with GitHub CLI."

To disable a workflow, use the workflow disable subcommand. Replace workflow with either the name, ID, or file name of the workflow you want to disable. For example, "Link Checker", 1234567, or "link-check-test.yml". If you don't specify a workflow, CLI de GitHub returns an interactive menu for you to choose a workflow.

gh workflow disable workflow

To enable a workflow, use the workflow enable subcommand. Replace workflow with either the name, ID, or file name of the workflow you want to enable. For example, "Link Checker", 1234567, or "link-check-test.yml". If you don't specify a workflow, CLI de GitHub returns an interactive menu for you to choose a workflow.

gh workflow enable workflow

Disabling and enabling workflows through the REST API

You can also disable and enable a workflow using the REST API. For more information, see the "Actions REST API."

¿Te ayudó este documento?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

O, learn how to contribute.