We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e75f75 commit 74d8b96Copy full SHA for 74d8b96
index.js
@@ -143,10 +143,18 @@ async function main() {
143
core.endGroup();
144
145
core.startGroup("Run 'prepare' in VM");
146
+
147
+ var usesh = core.getInput("usesh").toLowerCase() == "true";
148
149
var prepare = core.getInput("prepare");
150
if (prepare) {
151
core.info("Running prepare: " + prepare);
- await execSSH(prepare);
152
+ if (usesh) {
153
+ await execSSHSH(prepare);
154
+ } else {
155
+ await execSSH(prepare);
156
+ }
157
158
}
159
160
@@ -158,7 +166,7 @@ async function main() {
166
167
var error = null;
168
try {
161
- var usesh = core.getInput("usesh").toLowerCase() == "true";
169
162
170
if (usesh) {
163
171
await execSSHSH("cd $GITHUB_WORKSPACE;\n" + run);
164
172
} else {
0 commit comments