Skip to content

Github.action_path contains \ on windows runners even when the shell is set to bash #25910

Answered by weide-zhou
SaschaMann asked this question in Actions
Discussion options

You must be logged in to vote

Hi @saschamann,

Please use $GITHUB_ACTION_PATH instead.

    - run: julia --color=yes $GITHUB_ACTION_PATH/main.jl
      shell: bash

Doc here: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsrun

Thanks.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants