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
$ gh --version
gh version 2.59.0 (2024-10-16)
https://github.com/cli/cli/releases/tag/v2.59.0
Using the ref parameter does not seem to have any impact. A random-string ref gives no errors. A ref for an existing branch that has not yet been merged into the default branch reports 404 when trying to run a workflow that is new to that branch.
Steps to reproduce the behavior
Create a new branch foo
Create a new workflow file bar.yml with workflow_dispatch and no other triggers
commit/push branch
gh workflow run bar.yml --ref foo
Expected vs actual behavior
Expected: workflow bar.yml runs.
Actual: 404: Not found.
Logs
Paste the activity from your command line. Redact if needed.
$ GH_DEBUG=true gh workflow run bar.yml --ref foo
[git remote -v]
[git config --get-regexp ^remote\..*\.gh-resolved$]
* Request at 2024-10-17 10:33:53.601824859 -0400 EDT m=+0.076128339
* Request to https://api.github.com/graphql
* Request took 309.171144ms
* Request at 2024-10-17 10:33:53.914645102 -0400 EDT m=+0.388948592
* Request to https://api.github.com/repos/[ORG]/[REPO]/actions/workflows/bar.yml
* Request took 134.922376ms
HTTP 404: Not Found (https://api.github.com/repos/.../bar.yml)
Describe the bug
Using the
refparameter does not seem to have any impact. A random-stringrefgives no errors. Areffor an existing branch that has not yet been merged into the default branch reports 404 when trying to run a workflow that is new to that branch.Steps to reproduce the behavior
foobar.ymlwithworkflow_dispatchand no other triggersgh workflow run bar.yml --ref fooExpected vs actual behavior
Expected: workflow
bar.ymlruns.Actual: 404: Not found.
Logs
Paste the activity from your command line. Redact if needed.