Skip to main content

Esta versão do GitHub Enterprise foi descontinuada em 2022-10-12. Nenhum lançamento de patch será feito, mesmo para questões críticas de segurança. Para obter melhor desempenho, segurança aprimorada e novos recursos, atualize para a última versão do GitHub Enterprise. Para obter ajuda com a atualização, entre em contato com o suporte do GitHub Enterprise.

Manually running a workflow

When a workflow is configured to run on the workflow_dispatch event, you can run the workflow using the Actions tab on GitHub, GitHub CLI, or the REST API.

Observação: no momento, não há suporte para os executores hospedados no GitHub no GitHub Enterprise Server. Você pode ver mais informações sobre o suporte futuro planejado no GitHub public roadmap.

Configuring a workflow to run manually

To run a workflow manually, the workflow must be configured to run on the workflow_dispatch event. To trigger the workflow_dispatch event, your workflow must be in the default branch. For more information about configuring the workflow_dispatch event, see "Events that trigger workflows".

É necessário o acesso de gravação ao repositório é para executar essas etapas.

Running a workflow

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  2. Abaixo do nome do repositório, clique em Actions. Guia Actions no menu de navegação do repositório principal

  3. In the left sidebar, click the workflow you want to run.

    Actions select workflow

  4. Above the list of workflow runs, select Run workflow. actions workflow dispatch

  5. Use the Branch dropdown to select the workflow's branch, and type the input parameters. Click Run workflow. actions manually run workflow

Running a workflow using the REST API

When using the REST API, you configure the inputs and ref as request body parameters. If the inputs are omitted, the default values defined in the workflow file are used.

Note: You can define up to 10 inputs for a workflow_dispatch event.

For more information about using the REST API, see the "Create a workflow dispatch event."