Skip to content

Commit c0851f6

Browse files
authored
[EDI] Triggering a workflow (#56663)
1 parent 9821ed8 commit c0851f6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

content/actions/how-tos/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,11 @@ redirect_from:
1818

1919
{% data reusables.actions.enterprise-github-hosted-runners %}
2020

21-
## About workflow triggers
21+
## Prerequisites
2222

23-
{% data reusables.actions.about-triggers %}
23+
To learn more about workflows and triggering workflows, see [AUTOTITLE](/actions/concepts/workflows-and-actions/workflows).
2424

25-
Workflow triggers are defined with the `on` key. For more information, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#on).
26-
27-
The following steps occur to trigger a workflow run:
28-
29-
1. An event occurs on your repository. The event has an associated commit SHA and Git ref.
30-
1. {% data variables.product.github %} searches the `.github/workflows` directory in the root of your repository for workflow files that are present in the associated commit SHA or Git ref of the event.
31-
1. A workflow run is triggered for any workflows that have `on:` values that match the triggering event. Some events also require the workflow file to be present on the default branch of the repository in order to run.
32-
33-
Each workflow run will use the version of the workflow that is present in the associated commit SHA or Git ref of the event. When a workflow runs, {% data variables.product.github %} sets the `GITHUB_SHA` (commit SHA) and `GITHUB_REF` (Git ref) environment variables in the runner environment. For more information, see [AUTOTITLE](/actions/learn-github-actions/variables).
34-
35-
### Triggering a workflow from a workflow
25+
## Triggering a workflow from a workflow
3626

3727
{% data reusables.actions.actions-do-not-trigger-workflows %} For more information, see [AUTOTITLE](/actions/security-guides/automatic-token-authentication).
3828

data/reusables/actions/about-triggers.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ Workflow triggers are events that cause a workflow to run. These events can be:
66
* Manual
77

88
For example, you can configure your workflow to run when a push is made to the default branch of your repository, when a release is created, or when an issue is opened.
9+
10+
Workflow triggers are defined with the `on` key. For more information, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#on).
11+
12+
The following steps occur to trigger a workflow run:
13+
14+
1. An event occurs on your repository. The event has an associated commit SHA and Git ref.
15+
1. {% data variables.product.github %} searches the `.github/workflows` directory in the root of your repository for workflow files that are present in the associated commit SHA or Git ref of the event.
16+
1. A workflow run is triggered for any workflows that have `on:` values that match the triggering event. Some events also require the workflow file to be present on the default branch of the repository in order to run.
17+
18+
Each workflow run will use the version of the workflow that is present in the associated commit SHA or Git ref of the event. When a workflow runs, {% data variables.product.github %} sets the `GITHUB_SHA` (commit SHA) and `GITHUB_REF` (Git ref) environment variables in the runner environment. For more information, see [AUTOTITLE](/actions/learn-github-actions/variables).

0 commit comments

Comments
 (0)