Github.action_path contains \
on windows runners even when the shell is set to bash
#25910
-
I’m trying to use When I run a workflow containing this action on a Windows runner, the path contains backslashes, even if the shell is set to
This makes the step fail, because the backslashes aren’t escaped properly to be used in bash. What is the recommended way to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @saschamann, Please use
Doc here: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsrun Thanks. |
Beta Was this translation helpful? Give feedback.
-
That worked, thank you :slight_smile: |
Beta Was this translation helpful? Give feedback.
Hi @saschamann,
Please use
$GITHUB_ACTION_PATH
instead.Doc here: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsrun
Thanks.