1
0
mirror of synced 2026-01-07 09:01:31 -05:00

Add first examples of Actions example library (#21282)

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
This commit is contained in:
Martin Lopes
2022-05-30 14:28:14 +10:00
committed by GitHub
parent 09f6c10c71
commit 36c00a8d19
26 changed files with 1611 additions and 1 deletions

View File

@@ -0,0 +1 @@
| Cloning your repository to the runner: | [`actions/checkout`](https://github.com/actions/checkout)|

View File

@@ -0,0 +1 @@
| Controlling how many workflow runs or jobs can run at the same time: | [`concurrency`](/actions/using-jobs/using-concurrency)|

View File

@@ -0,0 +1 @@
| Running a workflow at regular intervals: | [`schedule`](/actions/learn-github-actions/events-that-trigger-workflows#schedule) |

View File

@@ -0,0 +1 @@
The following diagram shows a high level view of the workflow's steps and how they run within the job:

View File

@@ -0,0 +1 @@
The following workflow was created by the {% data variables.product.prodname_dotcom %} Docs Engineering team. To review the latest version of this file in the [`github/docs`](https://github.com/github/docs) repository, see

View File

@@ -0,0 +1 @@
The following table explains how each of these features are used when creating a {% data variables.product.prodname_actions %} workflow.

View File

@@ -0,0 +1 @@
The example workflow demonstrates the following capabilities of {% data variables.product.prodname_actions %}:

View File

@@ -0,0 +1 @@
This article uses an example workflow to demonstrate some of the main CI features of {% data variables.product.prodname_actions %}.

View File

@@ -0,0 +1 @@
The name of the workflow as it will appear in the "Actions" tab of the {% data variables.product.prodname_dotcom %} repository.

View File

@@ -0,0 +1 @@
| Preventing a job from running unless specific conditions are met: | [`if`](/actions/using-jobs/using-conditions-to-control-job-execution)|

View File

@@ -0,0 +1,4 @@
- To learn about {% data variables.product.prodname_actions %} concepts, see "[Understanding GitHub Actions](/actions/learn-github-actions/understanding-github-actions)."
- For more step-by-step guide for creating a basic workflow, see "[Quickstart for GitHub Actions](/actions/quickstart)."
- If you're comfortable with the basics of {% data variables.product.prodname_actions %}, you can learn about workflows and their features at "[About workflows](/actions/using-workflows/about-workflows)."

View File

@@ -0,0 +1,5 @@
{% note %}
**Note**: Each line of this workflow is explained in the next section at "[Understanding the example](#understanding-the-example)."
{% endnote %}

View File

@@ -0,0 +1 @@
| Setting permissions for the token: | [`permissions`](/actions/using-jobs/assigning-permissions-to-jobs)|

View File

@@ -0,0 +1 @@
| Triggering a workflow to run automatically: | [`pull_request`](/actions/using-workflows/events-that-trigger-workflows#pull_request) |

View File

@@ -0,0 +1 @@
| Triggering a workflow to run automatically: | [`push`](/actions/using-workflows/events-that-trigger-workflows#push) |

View File

@@ -0,0 +1 @@
| Referencing secrets in a workflow: | [Secrets](/actions/security-guides/encrypted-secrets)|

View File

@@ -0,0 +1 @@
| Installing `node` on the runner: | [`actions/setup-node`](https://github.com/actions/setup-node) |

View File

@@ -0,0 +1 @@
| Manually running a workflow from the UI: | [`workflow_dispatch`](/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch)|