9191 uses : ${{ env.GH_ACTION_ROOT }}/tools
9292 with : |-
9393 {
94- "install-awslocal": " ${{ inputs.install-awslocal }}" ,
94+ "install-awslocal": ${{ toJSON( inputs.install-awslocal) }},
9595 }
9696
9797 - name : Start Localstack
@@ -104,12 +104,12 @@ runs:
104104 # keeping in there install-awslocal for backward compatibility
105105 with : |-
106106 {
107- "image-tag": " ${{ inputs.image-tag }}" ,
108- "install-awslocal": " ${{ inputs.install-awslocal }}" ,
109- "use-pro": " ${{ inputs.use-pro }}" ,
110- "configuration": " ${{ inputs.configuration }}" ,
111- "ci-project": " ${{ inputs.ci-project }}" ,
112- "skip-wait": " ${{ inputs.skip-wait }}"
107+ "image-tag": ${{ toJSON( inputs.image-tag) }},
108+ "install-awslocal": ${{ toJSON( inputs.install-awslocal) }},
109+ "use-pro": ${{ toJSON( inputs.use-pro) }},
110+ "configuration": ${{ toJSON( inputs.configuration) }},
111+ "ci-project": ${{ toJSON( inputs.ci-project) }},
112+ "skip-wait": ${{ toJSON( inputs.skip-wait) }}
113113 }
114114
115115 - name : Create Ephemeral Instance
@@ -119,9 +119,9 @@ runs:
119119 uses : ${{ env.GH_ACTION_ROOT }}/ephemeral/startup
120120 with : |-
121121 {
122- "github-token": " ${{ inputs.github-token }}" ,
123- "preview-cmd": " ${{ inputs.preview-cmd }}" ,
124- "auto-load-pod": " ${{ inputs.state-name }}"
122+ "github-token": ${{ toJSON( inputs.github-token) }},
123+ "preview-cmd": ${{ toJSON( inputs.preview-cmd) }},
124+ "auto-load-pod": ${{ toJSON( inputs.state-name) }}
125125 }
126126
127127 # Use different artifact from current workflow's by passing the workflow's id as WORKFLOW_ID env variable
@@ -132,8 +132,8 @@ runs:
132132 uses : ${{ env.GH_ACTION_ROOT }}/${{ inputs.state-backend }}
133133 with : |-
134134 {
135- "name": " ${{ inputs.state-name }}" ,
136- "action": " ${{ inputs.state-action }}"
135+ "name": ${{ toJSON( inputs.state-name) }},
136+ "action": ${{ toJSON( inputs.state-action) }}
137137 }
138138
139139 - name : Display Ephemeral Instance URL
@@ -145,9 +145,9 @@ runs:
145145 uses : ${{ env.GH_ACTION_ROOT }}/finish
146146 with : |-
147147 {
148- "github-token": " ${{ inputs.github-token }}" ,
149- "ci-project": " ${{ inputs.ci-project }}" ,
150- "include-preview": " ${{ inputs.include-preview != '' && inputs.include-preview || env.include-preview }}"
148+ "github-token": ${{ toJSON( inputs.github-token) }},
149+ "ci-project": ${{ toJSON( inputs.ci-project) }},
150+ "include-preview": ${{ inputs.include-preview != '' && toJSON( inputs.include-preview) || toJSON( env.include-preview) }}
151151 }
152152
153153 - name : Stop Ephemeral Instance
@@ -157,5 +157,5 @@ runs:
157157 uses : ${{ env.GH_ACTION_ROOT }}/ephemeral/shutdown
158158 with : |-
159159 {
160- "name": " ${{ inputs.github-token }}" ,
160+ "name": ${{ toJSON( inputs.github-token) }},
161161 }
0 commit comments