Fix escaped environment variables in script.

This commit is contained in:
Yang Chen
2020-02-04 12:17:30 +11:00
committed by Yang
parent e53c6d9838
commit 4082c705ad
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -46,5 +46,6 @@ jobs:
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
disable-animations: true disable-animations: true
script: | script: |
echo $GITHUB_REPOSITORY
./gradlew help ./gradlew help
./gradlew connectedDebugAndroidTest ./gradlew connectedDebugAndroidTest
+1 -1
View File
@@ -84,7 +84,7 @@ function run() {
// execute the custom script // execute the custom script
try { try {
for (const script of scripts) { for (const script of scripts) {
yield exec.exec(`${script}`); yield exec.exec(`sh -c \\"${script}"`);
} }
} }
catch (error) { catch (error) {
+1 -1
View File
@@ -79,7 +79,7 @@ async function run() {
// execute the custom script // execute the custom script
try { try {
for (const script of scripts) { for (const script of scripts) {
await exec.exec(`${script}`); await exec.exec(`sh -c \\"${script}"`);
} }
} catch (error) { } catch (error) {
core.setFailed(error.message); core.setFailed(error.message);