Skip to content

gh workflow run not working in scheduled_builds.yml #6044

@ConorMacBride

Description

@ConorMacBride

Provide a general description of the issue or problem.

The scheduled_builds.yml workflow which runs on a schedule on the main branch runs the ci.yml workflow on all the branches using the following commands:

gh workflow run ci.yml --repo sunpy/sunpy --ref main
gh workflow run ci.yml --repo sunpy/sunpy --ref 3.1
gh workflow run ci.yml --repo sunpy/sunpy --ref 3.0

However, even through the scheduled_builds.yml workflow runs successfully, no ci.yml workflows are actually run. It's strange that the command doesn't produce any output. The default GitHub Action token should have write access to Actions, so should not be a permissions issue.

Running locally using my GitHub token produces:

bash-3.2$ gh workflow run ci.yml --repo sunpy/sunpy --ref 3.1
✓ Created workflow_dispatch event for ci.yml at 3.1

To see runs for this workflow, try: gh run list --workflow=ci.yml

And the workflow is run as expected: https://github.com/sunpy/sunpy/actions/runs/2104531708

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssues or PRs that affect the CI or packaging.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions