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/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. 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);