-
Hi Github Community, I’m having trouble using $GITHUB_PATH. I can’t tell if I’m not using it correctly, or if It’s not executing correctly. For both of the following links, please pay attention to the Windows builds only. Here is a link to a previous version of a Github Action script that did work prior the switch to $GITHUB_PATH. Here is a link to the most recent version of the Github Action script that stopped working with the $GITHUB_PATH changes. Please note specifically the steps titled
The above code block was updated to below with the $GITHUB_PATH changes
Here is a following step titled
Am I doing something incorrectly with the usage of the $GITHUB_PATH variable? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
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:
If you need to be using powershell, you can follow the powershell example here It would look like:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much! I’m so tuned into bash, I didn’t think of the shell that I was using. I appreciate your help. |
Beta Was this translation helpful? Give feedback.
-
@thboop Hi, sorry to bother you. On my self-hosted runner(windows10), the GITHUB_PATH variable cannot be effective in next steps, is there something wrong?
|
Beta Was this translation helpful? Give feedback.
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:
If you need to be using powershell, you can follow the powershell example here
It would look like: