Use inputs vars inside an expression function like hashFiles #25761
-
|
I would like to use the However, using this action is resulting with the following error: I looked in the community and I found a similar issue but with an insufficient solution since it is using So, is there a solution for this? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
|
tomgrossman:
You have a template wrapped in template there, try: |
Beta Was this translation helpful? Give feedback.
-
|
OK wow, how did I now tried that? I though inputs must be accessed explicitly with `${{ }} |
Beta Was this translation helpful? Give feedback.
-
|
It’s not inputs, the Actions expressions need to be wrapped in those. Within an expression you can use variables by name. 😺 |
Beta Was this translation helpful? Give feedback.
-
|
Upvoted. Thank you for your answer. My case is different: this is what I have: what I need: I want to change the hardcoded "./repo" string with ${{ matrix.repoLocalPath }} and concat it with a Hardcoded tail. Any solution for this? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry to resurrect an old thread - I have a similar issue. I have an arbitrary number of file paths I'd like to use in I've also tried using a bash array, but trying to use bash variables with the |
Beta Was this translation helpful? Give feedback.
-
|
Taking advantage of the discussion, I think the hashFiles function only works with hardcoded parameters, I tried something like: And it works as if the contents of $FOO were empty, in the same step I echo the variable and see its contents |
Beta Was this translation helpful? Give feedback.
You have a template wrapped in template there, try: