> for multi-line strings, I almost always use |, and only |. It takes the indented block as-is
Except it doesn't. Try using
steps:
- run: |
> f echo not redirected
in Github Actions.