Skip to content

$GITHUB_PATH does not add to the path #26380

Answered by thboop
jameskr97 asked this question in Actions
Discussion options

You must be logged in to vote

Hey @jameskr97, you appear to be using the bash example, but on windows a step runs on pwsh (powershell core) by default.

Since you are using hosted runners, bash is included. Try updating your step to to run that step in bash:

- name: Update Environment Variables
  shell: bash
  run: |
    echo "${{github.workspace}}/main/extern/crashpad/breakpad/win/" >> $GITHUB_PATH
    echo "ETTERNA_ARCH=${{matrix.cfg.name}}" >> $GITHUB_ENV

If you need to be using powershell, you can follow the powershell example here

It would look like:

steps:
  - run: |
      echo "${{github.workspace}}/main/extern/crashpad/breakpad/win/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
      echo "ETTE…

Replies: 3 comments 1 reply

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jo-mue
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants