Skip to content

Commit 4082c70

Browse files
committed
Fix escaped environment variables in script.
1 parent e53c6d9 commit 4082c70

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ jobs:
4646
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
4747
disable-animations: true
4848
script: |
49+
echo $GITHUB_REPOSITORY
4950
./gradlew help
5051
./gradlew connectedDebugAndroidTest

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function run() {
8484
// execute the custom script
8585
try {
8686
for (const script of scripts) {
87-
yield exec.exec(`${script}`);
87+
yield exec.exec(`sh -c \\"${script}"`);
8888
}
8989
}
9090
catch (error) {

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function run() {
7979
// execute the custom script
8080
try {
8181
for (const script of scripts) {
82-
await exec.exec(`${script}`);
82+
await exec.exec(`sh -c \\"${script}"`);
8383
}
8484
} catch (error) {
8585
core.setFailed(error.message);

0 commit comments

Comments
 (0)