File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,20 @@ workflow(
188
188
env = mapOf (
189
189
FIRST_NAME to " Patrick" ,
190
190
),
191
- command = " echo $GREETING $FIRST_NAME " ,
191
+ // The assertion below presents the current, undesired behavior related to
192
+ // env vars, used either from shell or GitHub Actions expressions.
193
+ // TODO: fix in https://github.com/typesafegithub/github-workflows-kt/issues/1956
194
+ command = """
195
+ cat << EOF > actual
196
+ $GREETING -$FIRST_NAME
197
+ EOF
198
+
199
+ cat << EOF > expected
200
+ -
201
+ EOF
202
+
203
+ diff actual expected
204
+ """ .trimIndent(),
192
205
)
193
206
run (
194
207
name = " Encrypted secret" ,
Original file line number Diff line number Diff line change 99
99
name : ' Custom environment variable'
100
100
env :
101
101
$FIRST_NAME : ' Patrick'
102
- run : ' echo $GREETING $FIRST_NAME'
102
+ run : |-
103
+ cat << EOF > actual
104
+ $GREETING-$FIRST_NAME
105
+ EOF
106
+
107
+ cat << EOF > expected
108
+ -
109
+ EOF
110
+
111
+ diff actual expected
103
112
- id : ' step-11'
104
113
name : ' Encrypted secret'
105
114
env :
You can’t perform that action at this time.
0 commit comments