Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables are unavailable in script #19

Closed
alexsegura opened this issue Feb 3, 2020 · 3 comments · Fixed by #20
Closed

Environment variables are unavailable in script #19

alexsegura opened this issue Feb 3, 2020 · 3 comments · Fixed by #20

Comments

@alexsegura
Copy link

Hi,

When using environment variable in script, they seem to be escaped

The example below would just print $GITHUB_WORKSPACE

steps:
  - ...
  - uses: reactivecircus/android-emulator-runner@v2
    with:
      ...
      script: |
        echo $GITHUB_WORKSPACE

The problem should be around there

// execute the custom script
try {
for (const script of scripts) {
await exec.exec(`${script}`);
}
} catch (error) {
core.setFailed(error.message);
}

@ychescale9
Copy link
Member

Thanks for reporting! Will fix soon.

@alexsegura
Copy link
Author

Thank you!

@ychescale9
Copy link
Member

This should be fixed in the latest release. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants