-
I’m trying to use a custom shell command to set an rc file for bash. What I want to do is:
or use a short form like this:
In both cases it appears the context cannot be resolved within the shell parameter, as I get this error:
I get a similar error for the BTW, it would be handy to have the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
When using the shell keyword to specify and set a shell, currently we seems are not able to use variables (such as environment variables, matrix parameters) in the value of the shell keyword. In addition, the default workspace of the current running job generally is ${{ github.workspace }}. Because the RC file you want to set is contained in the workspace, maybe you can try to only specify the relative path of the RC file instead of the full absolute path. For example:
OR
|
Beta Was this translation helpful? Give feedback.
-
Custom
|
Beta Was this translation helpful? Give feedback.
-
Thanks @alun ! I worked around this in my build mainly by duplicating the steps we’d take in the rc file, but this looks like the right solution to me. |
Beta Was this translation helpful? Give feedback.
Custom
rcfile
setting that worked for me with default bash shell (no override):