Skip to main content

Using starter workflows

GitHub Enterprise Server provides starter workflows for a variety of languages and tooling.

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.

About starter workflows

Starter workflows are templates that help you to create your own GitHub Actions workflows for a repository. They offer an alternative to starting from a blank workflow file and are useful because some of the work will already have been done for you.

GitHub Enterprise Server offers starter workflows for a variety of languages and tooling. When you set up workflows in your repository, GitHub Enterprise Server analyzes the code in your repository and recommends workflows based on the language and framework in your repository. For example, if you use Node.js, GitHub Enterprise Server will suggest a starter workflow file that installs your Node.js packages and runs your tests. You can search and filter to find relevant starter workflows.

O GitHub fornece fluxos de trabalho iniciais prontos para uso para as seguintes categorias de alto nível:

  • Implantação (CD) . Para obter mais informações, confira "Sobre a implantação contínua".

  • CI (integração contínua) . Para obter mais informações, confira "Sobre integração contínua".

  • Automação. Os fluxos de trabalho iniciais de automação oferecem soluções para automatizar os fluxos de trabalho, como a triagem de solicitações de pull e a aplicação de um rótulo com base nos caminhos modificados na solicitação de pull ou a saudação de usuários que estão colaborando pela primeira vez no repositório.

You can also create your own starter workflow to share with your organization. These starter workflows will appear alongside the GitHub Enterprise Server-provided starter workflows. Anyone with write access to the organization's github repository can set up a starter workflow. For more information, see "Criando fluxos de trabalho iniciais para sua organização."

Choosing and using a starter workflow

  1. No sua instância do GitHub Enterprise Server, navegue até a página principal do repositório.

  2. No nome do repositório, clique em Ações.

    Captura de tela das guias do repositório "github/docs". A guia "Ações" está realçada com um contorno laranja.

  3. If you already have a workflow in your repository, click New workflow.

  4. The "Choose a workflow" page shows a selection of recommended starter workflows. Find the starter workflow that you want to use, then click Configure. To help you find the starter workflow that you want, you can search for keywords or filter by category.

  5. If the starter workflow contains comments detailing additional setup steps, follow these steps.

    There are guides to accompany many of the starter workflows for building and testing projects. For more information, see "Automatizando criações e testes."

  6. Some starter workflows use secrets. For example, ${{ secrets.npm_token }}. If the starter workflow uses a secret, store the value described in the secret name as a secret in your repository. For more information, see "Usar segredos em ações do GitHub."

  7. Optionally, make additional changes. For example, you might want to change the value of on to change when the workflow runs.

  8. Click Start commit.

  9. Write a commit message and decide whether to commit directly to the default branch or to open a pull request.

Further reading