@@ -49,33 +49,60 @@ jobs:
49
49
uses : actions/checkout@v4
50
50
51
51
- name : Direct Text (JSON Variables)
52
+ id : direct-json
52
53
uses : ./
53
54
with :
54
55
template-text : ' Hello {{ login }}, nice to meet you!'
55
56
template-vars : >
56
57
{
57
- "login": "octocat "
58
+ "login": "Octobi Wan Catnobi "
58
59
}
59
60
61
+ - name : Verify Direct Text JSON Output
62
+ env :
63
+ UPDATED_TEXT : ${{ steps.direct-json.outputs.updated-text }}
64
+ run : |
65
+ echo "$UPDATED_TEXT" | grep -q "Octobi Wan Catnobi" || exit 1
66
+
60
67
- name : Direct Text (ENV Variables)
68
+ id : direct-env
61
69
uses : ./
62
70
with :
63
71
template-text : ' Hello {{ login }}, nice to meet you!'
64
72
template-vars : |
65
- login=octocat
73
+ login=Octoclark Kentocat
74
+
75
+ - name : Verify Direct Text ENV Output
76
+ env :
77
+ UPDATED_TEXT : ${{ steps.direct-env.outputs.updated-text }}
78
+ run : |
79
+ echo "$UPDATED_TEXT" | grep -q "Octoclark Kentocat" || exit 1
66
80
67
81
- name : Text File (JSON variables)
68
- id : test-readme-same-repo
82
+ id : template-file-json
69
83
uses : ./
70
84
with :
71
85
template-file : ./examples/hello.md
72
86
template-vars : >
73
87
{
74
- "login": "octocat "
88
+ "login": "Spidertocat "
75
89
}
76
90
91
+ - name : Verify Text File JSON Output
92
+ env :
93
+ UPDATED_TEXT : ${{ steps.template-file-json.outputs.updated-text }}
94
+ run : |
95
+ echo "$UPDATED_TEXT" | grep -q "Spidertocat" || exit 1
96
+
77
97
- name : Text File (ENV variables)
98
+ id : template-file-env
78
99
uses : ./
79
100
with :
80
101
template-file : ./examples/hello.md
81
- template-vars : login=octocat
102
+ template-vars : login=Codercat
103
+
104
+ - name : Verify Text File ENV Output
105
+ env :
106
+ UPDATED_TEXT : ${{ steps.template-file-env.outputs.updated-text }}
107
+ run : |
108
+ echo "$UPDATED_TEXT" | grep -q "Codercat" || exit 1
0 commit comments