-
Notifications
You must be signed in to change notification settings - Fork 59.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update pwsh
commands
#34253
Update pwsh
commands
#34253
Conversation
Update all instances of `"something" | Out-File -FilePath $env:GITHUB_ENV -Append` as this does not work with the shell set to `pwsh` consistently. Consistent results were only visible using the ` >> ` mode.
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
Automatically generated comment ℹ️This comment is automatically generated and will be overwritten every time changes are committed to this branch. The table contains an overview of files in the Content directory changesYou may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.
fpt: Free, Pro, Team |
Per @jessehouwing request I also updated the random generator to be `(New-Guid).Guid` instead of something more complicated.
pwsh
commands
@MrHinsh Thanks so much for opening a PR! I'll get this triaged for review ✨ |
Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert 👀 |
This comment was marked as spam.
This comment was marked as spam.
@MrHinsh Thank you for your patience while our SME team reviewed your PR! Our SME team responded with the following:
If you have any feedback regarding this response, please let us know! 💛 |
I'm positive I've run these as is on Windows agents as well. I'll run a test, but if it works in Powershell it should work in both environments. |
This PR has been automatically closed because there has been no response to to our request for more information from the original author. Please reach out if you have the information we requested, or open a new issue to describing your changes. Then we can begin the review process. |
How do i reopen this? |
Apologies about the aggressive automation @MrHinsh |
Ive tested this for both Ubuntu and Windows: https://github.com/MrHinsh/pwsh-command-test/actions/runs/10825655461 I created the following build:
This build uses Please feel free to check my work. Repo: https://github.com/MrHinsh/pwsh-command-test/ Result: https://github.com/MrHinsh/pwsh-command-test/actions/runs/10825739503 @nguyenalex836 does this address the concern? |
@MrHinsh Thank you for testing and posting your results! ✨ I'm going to ping the SME who initially reviewed this PR to review these results as well. We'll provide an update once the review is finished 💛 |
@MrHinsh Our SME just reviewed your results, and everything looks perfect! ✨ Thank you for taking the time to draft this PR and sharing your test results 💛 This repo is currently in a code freeze, but we will get this merged as soon as the freeze ends on 9/16 🍏 |
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Why:
Currently, in the documentation for workflow-commands-for-github-actions it states that a valid use of PowerShell is:
"$Something" | Out-File -FilePath $env:GITHUB_ENV -Append
However, this does not work for the hosted
Ubuntu-Latest
agents running with thepwsh
shell.What's being changed:
I have updated all of the powershell commands on this page to be the working format of:
"$Something" >> $env:GITHUB_ENV
Which I have tested produces consistent results.
I have left all older PowerShell commands and only updated the Powershell Core ones.
Check off the following:
I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).
data
directory.For content changes, I have completed the self-review checklist.