From 4082c705ad4c08d08d52e2f12ad35d993ddd6c91 Mon Sep 17 00:00:00 2001 From: Yang Chen Date: Tue, 4 Feb 2020 12:17:30 +1100 Subject: [PATCH 1/2] Fix escaped environment variables in script. --- .github/workflows/workflow.yml | 1 + lib/main.js | 2 +- src/main.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 031a1b921..5eb2b8226 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -46,5 +46,6 @@ jobs: emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none disable-animations: true script: | + echo $GITHUB_REPOSITORY ./gradlew help ./gradlew connectedDebugAndroidTest diff --git a/lib/main.js b/lib/main.js index 9041946ee..78d800669 100644 --- a/lib/main.js +++ b/lib/main.js @@ -84,7 +84,7 @@ function run() { // execute the custom script try { for (const script of scripts) { - yield exec.exec(`${script}`); + yield exec.exec(`sh -c \\"${script}"`); } } catch (error) { diff --git a/src/main.ts b/src/main.ts index 968925125..074616aad 100644 --- a/src/main.ts +++ b/src/main.ts @@ -79,7 +79,7 @@ async function run() { // execute the custom script try { for (const script of scripts) { - await exec.exec(`${script}`); + await exec.exec(`sh -c \\"${script}"`); } } catch (error) { core.setFailed(error.message); From d3a226f97f444822707344ea9c78db21c2d6dd91 Mon Sep 17 00:00:00 2001 From: Yang Chen Date: Tue, 4 Feb 2020 12:27:56 +1100 Subject: [PATCH 2/2] Prepare for release 2.3.2. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53f93a4d4..fec4d9d0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## v2.3.2 + +* Fixed an issue where environment variables are escaped in script. + ## v2.3.1 * Bumped Android Build tools to 29.0.3.