注: GitHub 托管的运行器目前在 GitHub Enterprise Server 上不受支持。 您可以在 GitHub 公共路线图 上查看有关未来支持计划的更多信息。
About starter workflows
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.
GitHub provides ready-to-use starter workflows for the following high level categories:
-
Deployment (CD). For more information, see "About continuous deployment."
-
Continuous Integration (CI). 更多信息请参阅“关于持续集成”。
-
Automation. Automation starter workflows offer solutions for automating workflows, such as triaging pull requests and applying a label based on the paths that are modified in the pull request, or greeting users who are first time contributors to the repository.
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. For more information, see "Creating starter workflows for your organization."
Using starter workflows
Anyone with write permission to a repository can set up GitHub Actions starter workflows for CI/CD or other automation.
- 在 your GitHub Enterprise Server instance 上,导航到仓库的主页面。
- Under your repository name, click Actions.
- If you already have a workflow in your repository, click New workflow.
- Find the starter workflow that you want to use, then click Set up this workflow.
- If the starter workflow contains comments detailing additional setup steps, follow these steps. Many of the starter workflow have corresponding guides. For more information, see the GitHub Actions guides."
- 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. 更多信息请参阅“� 密密� �”。 - Optionally, make additional changes. For example, you might want to change the value of
on
to change when the workflow runs. - 单击 Start commit(开始提交)。
- Write a commit message and decide whether to commit directly to the default branch or to open a pull request.