You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for pwsh - pwsh -command "& '{0}'"
for powershell - powershell -command "& '{0}'".
however in runs it seems that the commands are not that example
/usr/bin/pwsh -command ". '{0}'"
So the difference seems to be . vs &? If you run this workflow:
name: check shell output
on:
push:
jobs:
pwsh:
runs-on: windows-latest
steps:
- name: windows pwsh command
shell: pwsh
run: Write-Host 'Hello, World pwsh!'
powershell:
runs-on: windows-latest
steps:
- name: windows powershell command
shell: powershell
run: Write-Host 'Hello, World powershell!'
I think this is what you see in the log output for pwsh:
Run Write-Host 'Hello, World pwsh!'
Write-Host 'Hello, World pwsh!'
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
And for powershell:
Run Write-Host 'Hello, World powershell!'
Write-Host 'Hello, World powershell!'
shell: C:\windows\System32\WindowsPowerShell\v1.0\powershell.EXE -command ". '{0}'"
So -command ". '{0}'" in both cases but the docs shows -command "& '{0}'" in both cases?
Audience
Users who are building GitHub Actions workflows and using pwsh or powershell.
The text was updated successfully, but these errors were encountered:
janiceilene
added
actions
This issue or pull request should be reviewed by the docs actions team
and removed
triage
Do not begin working on this issue until triaged by the team
labels
Oct 6, 2020
casals
added a commit
to casals/docs
that referenced
this issue
Oct 7, 2020
* Edit index
* Fix typos and reflow
* Editing config page.
* Edit config page.
* Edit timescaledb-tune
* Rename config file to about config
* Small edits to tune tool page
* Edit Postgres config
* Edit PostgreSQL config
* Edit Docker Config
* Add telemetry to index
* Edit telemetery
* Small syntax edits
* Fix bad link
* Update page-index.js
Adding in the new page to be able to view it for review.
* add procedure styling
Co-authored-by: Jacob Prall <prall.jacob@gmail.com>
Co-authored-by: Ryan Booz <ryan@timescale.com>
What feature or product is affected?
Actions!
What is the new or expected behavior?
Corrected shell command details (I think)!
How is the old or inaccurate behavior currently documented?
We received a report from a user
So the difference seems to be
.
vs&
? If you run this workflow:I think this is what you see in the log output for
pwsh
:And for
powershell
:So
-command ". '{0}'"
in both cases but the docs shows-command "& '{0}'"
in both cases?Audience
Users who are building GitHub Actions workflows and using pwsh or powershell.
The text was updated successfully, but these errors were encountered: