Skip to content

Commit 8ab292b

Browse files
authored
Merge branch 'main' into restore-procedural-image-wrapper
2 parents cd9985d + 7df8df4 commit 8ab292b

2 files changed

Lines changed: 22 additions & 22 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
@@ -478,15 +478,15 @@ jobs:
478478
output1: ${{ steps.step1.outputs.test }}
479479
output2: ${{ steps.step2.outputs.test }}
480480
steps:
481-
- id: step1
482-
run: echo "::set-output name=test::hello"
483-
- id: step2
484-
run: echo "::set-output name=test::world"
481+
- id: step1
482+
run: echo "::set-output name=test::hello"
483+
- id: step2
484+
run: echo "::set-output name=test::world"
485485
job2:
486486
runs-on: ubuntu-latest
487487
needs: job1
488488
steps:
489-
- run: echo ${{needs.job1.outputs.output1}} ${{needs.job1.outputs.output2}}
489+
- run: echo ${{needs.job1.outputs.output1}} ${{needs.job1.outputs.output2}}
490490
```
491491
{% endraw %}
492492

@@ -556,14 +556,14 @@ jobs:
556556
name: My Job
557557
runs-on: ubuntu-latest
558558
steps:
559-
- name: Print a greeting
560-
env:
561-
MY_VAR: Hi there! My name is
562-
FIRST_NAME: Mona
563-
MIDDLE_NAME: The
564-
LAST_NAME: Octocat
565-
run: |
566-
echo $MY_VAR $FIRST_NAME $MIDDLE_NAME $LAST_NAME.
559+
- name: Print a greeting
560+
env:
561+
MY_VAR: Hi there! My name is
562+
FIRST_NAME: Mona
563+
MIDDLE_NAME: The
564+
LAST_NAME: Octocat
565+
run: |
566+
echo $MY_VAR $FIRST_NAME $MIDDLE_NAME $LAST_NAME.
567567
```
568568
{% endraw %}
569569

lib/liquid-tags/indented-data-reference.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
this.markup = tagToken.args.trim()
1515
},
1616

17-
async render (context) {
17+
async render (scope) {
1818
// obfuscate first legit space, remove all other spaces, then restore legit space
1919
// this way we can support spaces=NUMBER as well as spaces = NUMBER
2020
const input = this.markup
@@ -30,7 +30,7 @@ module.exports = {
3030
assert(parseInt(numSpaces) || numSpaces === '0', '"spaces=NUMBER" must include a number')
3131

3232
// Get the referenced value from the context
33-
const value = await this.liquid.evalValue(`site.data.${dataReference}`, context)
33+
const value = await this.liquid.evalValue(`site.data.${dataReference}`, scope)
3434

3535
// If nothing is found in the context, exit with nothing; this may
3636
// feel weird and that we should throw an error, but this is "The Liquid Way TM"
@@ -39,6 +39,6 @@ module.exports = {
3939
// add spaces to each line
4040
const renderedReferenceWithIndent = value.replace(/^/mg, ' '.repeat(numSpaces))
4141

42-
return this.liquid.parseAndRender(renderedReferenceWithIndent, context)
42+
return this.liquid.parseAndRender(renderedReferenceWithIndent, scope.environments)
4343
}
4444
}

0 commit comments

Comments
 (0)