File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 50
50
run : echo "${{ steps.build-comment.outputs.updated-text }}"
51
51
` ` `
52
52
53
- ### Direct Text (ENV variables)
53
+ ### Direct Text (YAML variables)
54
54
55
55
` ` ` yaml
56
56
steps :
60
60
with :
61
61
template-text : ' Hello {{ login }}, nice to meet you!'
62
62
template-vars : |
63
- login= ${{ github.actor }}
63
+ login: ${{ github.actor }}
64
64
65
65
- name : Do something with result
66
66
run : echo "${{ steps.build-comment.outputs.updated-text }}"
Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ jobs:
16
16
uses : skills/action-text-variables@v1
17
17
with :
18
18
template-text : ' Hello {{ login }}, nice to meet you! Have you met my friend {{ friend }}?'
19
- template-vars : ' {
20
- "login": "${{ github.actor }}",
21
- "friend": "Mona"
22
- }'
19
+ template-vars : >
20
+ {
21
+ "login": "${{ github.actor }}",
22
+ "friend": "Mona"
23
+ }
23
24
24
25
- name : Do something with result
25
26
run : echo "${{ steps.build-comment.outputs.updated-text }}"
38
39
with :
39
40
template-text : ' Hello {{ login }}, nice to meet you! Have you met my friend {{ friend }}?'
40
41
template-vars : |
41
- login= ${{ github.actor }}
42
- friend= Mona
42
+ login: ${{ github.actor }}
43
+ friend: Mona
43
44
44
45
- name : Do something with result
45
46
run : echo "${{ steps.build-comment.outputs.updated-text }}"
Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ jobs:
25
25
uses : skills/action-text-variables@v1
26
26
with :
27
27
template-file : response-templates/step-feedback/lesson-finished.md
28
- template-vars : ' {
28
+ template-vars : >
29
+ {
29
30
"login": "${{ github.actor }}",
30
31
"repo_full_name": "${{ github.repository }}"
31
- }'
32
+ }
32
33
33
34
- name : Do something with result
34
35
run : echo "${{ steps.build-comment.outputs.updated-text }}"
Original file line number Diff line number Diff line change 19
19
uses : skills/action-text-variables@v1
20
20
with :
21
21
template-file : examples/hello.md
22
- template-vars : ' {"login": "${{ github.actor }}" }'
22
+ template-vars : >
23
+ {
24
+ "login": "${{ github.actor }}"
25
+ }
23
26
24
27
- name : Do something with result
25
28
run : echo "${{ steps.build-comment.outputs.updated-text }}"
You can’t perform that action at this time.
0 commit comments