Skip to content

Commit 6029402

Browse files
authored
Merge branch 'main' into repo-sync
2 parents cda55b8 + 3ad3703 commit 6029402

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

content/actions/learn-github-actions/contexts.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,11 @@ This example `jobs` context contains the result and outputs of a job from a reus
425425

426426
```json
427427
{
428-
example_job: {
429-
result: success,
430-
outputs: {
431-
output1: hello,
432-
output2: world
428+
"example_job": {
429+
"result": "success",
430+
"outputs": {
431+
"output1": "hello",
432+
"output2": "world"
433433
}
434434
}
435435
}
@@ -488,7 +488,7 @@ The `steps` context contains information about the steps in the current job that
488488

489489
This example `steps` context shows two previous steps that had an [`id`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepsid) specified. The first step had the `id` named `checkout`, the second `generate_number`. The `generate_number` step had an output named `random_number`.
490490

491-
```yaml
491+
```json
492492
{
493493
"checkout": {
494494
"outputs": {},
@@ -549,7 +549,7 @@ The `runner.workspace` property is purposefully not documented. It is an early A
549549

550550
The following example context is from a Linux {% data variables.product.prodname_dotcom %}-hosted runner.
551551

552-
```yaml
552+
```json
553553
{
554554
"os": "Linux",
555555
"arch": "X64",
@@ -606,7 +606,7 @@ The `secrets` context contains the names and values of secrets that are availabl
606606

607607
The following example contents of the `secrets` context shows the automatic `GITHUB_TOKEN`, as well as two other secrets available to the workflow run.
608608

609-
```yaml
609+
```json
610610
{
611611
"github_token": "***",
612612
"NPM_TOKEN": "***",
@@ -634,7 +634,7 @@ For workflows with a matrix, the `strategy` context contains information about t
634634

635635
The following example contents of the `strategy` context is from a matrix with four jobs, and is taken from the final job. Note the difference between the zero-based `job-index` number, and `job-total` which is not zero-based.
636636

637-
```yaml
637+
```json
638638
{
639639
"fail-fast": true,
640640
"job-index": 3,
@@ -683,7 +683,7 @@ There are no standard properties in the `matrix` context, only those which are d
683683

684684
The following example contents of the `matrix` context is from a job in a matrix that has the `os` and `node` matrix properties defined in the workflow. The job is executing the matrix combination of an `ubuntu-latest` OS and Node.js version `16`.
685685

686-
```yaml
686+
```json
687687
{
688688
"os": "ubuntu-latest",
689689
"node": 16
@@ -732,7 +732,7 @@ The `needs` context contains outputs from all jobs that are defined as a depende
732732

733733
The following example contents of the `needs` context shows information for two jobs that the current job depends on.
734734

735-
```yaml
735+
```json
736736
{
737737
"build": {
738738
"result": "success",
@@ -800,7 +800,7 @@ There are no standard properties in the `inputs` context, only those which are d
800800

801801
The following example contents of the `inputs` context is from a workflow that has defined the `build_id`, `deploy_target`, and `perform_deploy` inputs.
802802

803-
```yaml
803+
```json
804804
{
805805
"build_id": 123456768,
806806
"deploy_target": "deployment_sys_1a",

0 commit comments

Comments
 (0)