I've two branch in my repo i.e main
and kaju1
,
On main
branch (default), there are two workflow defined push.yml
and test.yml
.
On kaju1
branch, there are three workflow defined push.yml
, test.yml
, and pr.yml
.
I want to trigger pr.yml
i.e on kaju1
branch using github cli.
I tried using this code:
gh workflow run --repo username/repo-name --ref kaju1 pr.yml
But this is returning me the following error:
HTTP 404: Not Found (https://api.github.com/repos/username/repo-name/actions/workflows/pr.yml)