Describe the bug
When a workflow with a space in the name is run with gh workflow run the output suggestion of how to see the runs for the workflow doesn't wrap the name in quotes.
Affected version
gh version 2.74.1 (2025-06-10)
https://github.com/cli/cli/releases/tag/v2.74.1
Steps to reproduce the behavior
- Create and register a workflow with a space in the name. eg. 'My Workflow'
- Run `gh workflow run "My Workflow"
- See error
Expected vs actual behavior
The output of the command to run should either escape the spaces or wrap the name in quotes. Both work.
eg.
gh run list --workflow="My Workflow"
or
gh run list --workflow=My\ Workflow
Logs
N/A
Describe the bug
When a workflow with a space in the name is run with
gh workflow runthe output suggestion of how to see the runs for the workflow doesn't wrap the name in quotes.Affected version
gh version 2.74.1 (2025-06-10)
https://github.com/cli/cli/releases/tag/v2.74.1
Steps to reproduce the behavior
Expected vs actual behavior
The output of the command to run should either escape the spaces or wrap the name in quotes. Both work.
eg.
gh run list --workflow="My Workflow"or
gh run list --workflow=My\ WorkflowLogs
N/A