Skip to content

Commit 913cd27

Browse files
committed
Consistent YAML indentation
1 parent 7464453 commit 913cd27

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

content/actions/reference/workflow-syntax-for-github-actions.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ The following workflow will run on pushes to `releases/10` or `releases/beta/mon
110110
on:
111111
push:
112112
branches:
113-
- 'releases/**'
114-
- '!releases/**-alpha'
113+
- 'releases/**'
114+
- '!releases/**-alpha'
115115
```
116116

117117
### `on.<push|pull_request>.paths`
@@ -128,7 +128,7 @@ When all the path names match patterns in `paths-ignore`, the workflow will not
128128
on:
129129
push:
130130
paths-ignore:
131-
- 'docs/**'
131+
- 'docs/**'
132132
```
133133

134134
#### Example including paths
@@ -139,7 +139,7 @@ If at least one path matches a pattern in the `paths` filter, the workflow runs.
139139
on:
140140
push:
141141
paths:
142-
- '**.js'
142+
- '**.js'
143143
```
144144

145145
#### Excluding paths
@@ -160,8 +160,8 @@ This example runs anytime the `push` event includes a file in the `sub-project`
160160
on:
161161
push:
162162
paths:
163-
- 'sub-project/**'
164-
- '!sub-project/docs/**'
163+
- 'sub-project/**'
164+
- '!sub-project/docs/**'
165165
```
166166

167167
#### Git diff comparisons
@@ -392,15 +392,15 @@ jobs:
392392
output1: ${{ steps.step1.outputs.test }}
393393
output2: ${{ steps.step2.outputs.test }}
394394
steps:
395-
- id: step1
396-
run: echo "::set-output name=test::hello"
397-
- id: step2
398-
run: echo "::set-output name=test::world"
395+
- id: step1
396+
run: echo "::set-output name=test::hello"
397+
- id: step2
398+
run: echo "::set-output name=test::world"
399399
job2:
400400
runs-on: ubuntu-latest
401401
needs: job1
402402
steps:
403-
- run: echo ${{needs.job1.outputs.output1}} ${{needs.job1.outputs.output2}}
403+
- run: echo ${{needs.job1.outputs.output1}} ${{needs.job1.outputs.output2}}
404404
```
405405
{% endraw %}
406406

@@ -470,14 +470,14 @@ jobs:
470470
name: My Job
471471
runs-on: ubuntu-latest
472472
steps:
473-
- name: Print a greeting
474-
env:
475-
MY_VAR: Hi there! My name is
476-
FIRST_NAME: Mona
477-
MIDDLE_NAME: The
478-
LAST_NAME: Octocat
479-
run: |
480-
echo $MY_VAR $FIRST_NAME $MIDDLE_NAME $LAST_NAME.
473+
- name: Print a greeting
474+
env:
475+
MY_VAR: Hi there! My name is
476+
FIRST_NAME: Mona
477+
MIDDLE_NAME: The
478+
LAST_NAME: Octocat
479+
run: |
480+
echo $MY_VAR $FIRST_NAME $MIDDLE_NAME $LAST_NAME.
481481
```
482482
{% endraw %}
483483

0 commit comments

Comments
 (0)