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 AE offers starter workflows for a variety of languages and tooling. When you set up workflows in your repository, GitHub AE 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 AE 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.
GitHub proporciona flujos de trabajo de inicio listos para usar para las siguientes categorías generales:
-
Implementación (CD) . Para obtener más información, vea «Acerca del despliegue contínuo».
-
Integración continua (CI) . Para obtener más información, vea «Acerca de la integración continua».
-
Automatización. Los flujos de trabajo de inicio de automatización ofrecen soluciones para automatizar flujos de trabajo, como evaluar las solicitudes de incorporación de cambios y aplicar una etiqueta basada en las rutas modificadas en la solicitud de incorporación de cambios, o bien saludar a los usuarios que colaboran por primera vez en el repositorio.
You can also create your own starter workflow to share with your organization. These starter workflows will appear alongside the GitHub AE-provided starter workflows. Anyone with write access to the organization's github
repository can set up a starter workflow. For more information, see "Crear flujos de trabajo iniciales para tu organización."
Choosing and using a starter workflow
-
En tu empresa, navega a la página principal del repositorio.
-
En el nombre del repositorio, haz clic en Acciones.
-
If you already have a workflow in your repository, click New workflow.
-
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.
-
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 "Compilaciones automáticas y pruebas."
-
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 "Using secrets in GitHub Actions." -
Optionally, make additional changes. For example, you might want to change the value of
on
to change when the workflow runs. -
Click Start commit.
-
Write a commit message and decide whether to commit directly to the default branch or to open a pull request.