mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-09-05 03:29:32 +00:00
Fix escaped environment variables in script.
This commit is contained in:
@@ -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
@@ -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
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user