You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a simple example of what triggers this behavior:
- uses: gacts/run-and-post-run@v1with:
run: | if [[ true == true ]]; then echo "true" else echo "false" fipost: | if [[ true == true ]]; then echo "true" else echo "false" fi
The output:
I suspect it's due to a bug in joinMultilineCommands, but I know next to no Javascript/Typescript so I can't easily fix it myself.
Edit: after looking at the code a bit more closely, it seems the problem is because commands are always split into separate lines and run one line at a time. I think this makes sense when shell and/or post-shell is set to "" (invoking commands directly) and the user provided a list of commands. However is the shell is set, I think the input commands should not be modified and instead executed by the set shell as-is. Does that sound reasonable to you?
The text was updated successfully, but these errors were encountered:
Here's a simple example of what triggers this behavior:
The output:
I suspect it's due to a bug in
joinMultilineCommands
, but I know next to no Javascript/Typescript so I can't easily fix it myself.Edit: after looking at the code a bit more closely, it seems the problem is because commands are always split into separate lines and run one line at a time. I think this makes sense when
shell
and/orpost-shell
is set to""
(invoking commands directly) and the user provided a list of commands. However is the shell is set, I think the input commands should not be modified and instead executed by the set shell as-is. Does that sound reasonable to you?The text was updated successfully, but these errors were encountered: