1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Update workflow-syntax-for-github-actions.md (#22155)

This commit is contained in:
Martin Lopes
2021-10-18 16:53:13 +10:00
committed by GitHub
parent 7dfc879a03
commit 8b8de88dc3

View File

@@ -373,10 +373,12 @@ If you need to find the unique identifier of a job running in a workflow run, yo
## `jobs.<job_id>`
Each job must have an id to associate with the job. The key `job_id` is a string and its value is a map of the job's configuration data. You must replace `<job_id>` with a string that is unique to the `jobs` object. The `<job_id>` must start with a letter or `_` and contain only alphanumeric characters, `-`, or `_`.
Create an identifier for your job by giving it a unique name. The key `job_id` is a string and its value is a map of the job's configuration data. You must replace `<job_id>` with a string that is unique to the `jobs` object. The `<job_id>` must start with a letter or `_` and contain only alphanumeric characters, `-`, or `_`.
### Example
In this example, two jobs have been created, and their `job_id` values are `my_first_job` and `my_second_job`.
```yaml
jobs:
my_first_job: