Skip to content

Fetching a single remote branch #346

Open
@imsteev

Description

@imsteev

Hi, I'm currently using this action to checkout a repo so that I can prepare a release branch. The only branch I need is the default branch, however I'm noticing in the logs that this action is pulling all remote upstream branches. This is unnecessary work

Is there a way to only fetch a single branch?

In the documentation, the ref parameter seems related, but upon closer look this only affects what branch is checked out, not fetched

    # The branch, tag or SHA to checkout. When checking out the repository that
    # triggered a workflow, this defaults to the reference or SHA for that event.
    # Otherwise, uses the default branch.
    ref: ''

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions