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(
188188 env = mapOf (
189189 FIRST_NAME to " Patrick" ,
190190 ),
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(),
192205 )
193206 run (
194207 name = " Encrypted secret" ,
Original file line number Diff line number Diff line change 9999 name : ' Custom environment variable'
100100 env :
101101 $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
103112 - id : ' step-11'
104113 name : ' Encrypted secret'
105114 env :
You can’t perform that action at this time.
0 commit comments