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

[Feature Request] Dynamic paths can be used under the file runScript parameter #1446

Open
jbarriojim opened this issue Sep 14, 2023 · 0 comments
Labels
enhancement New feature request or improvement of an existing feature

Comments

@jbarriojim
Copy link

Is your feature request related to a problem? Please describe.
When I try to use a variable at the file runScript parameter, the variable is not transformed. The variable is used as a literal in spite of use the value of the variable.

In example this code, the evalScript is printing the filePath variable value but the runScript is going to raise an error (the path .maestro/languages${LANG}.js Flow file is invalid):

env:
  filePath: /languages/${LANG}.js
---
- evalScript: ${console.log(filePath)}

- runScript:
    file: ${filePath}

Describe the solution you'd like
The string passed as file parameter should transform the variables using their values.

Describe alternatives you've considered
You can see many of them in this discussion
#1442

@jbarriojim jbarriojim added the enhancement New feature request or improvement of an existing feature label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request or improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant