Skip to content

Feature request for retrieve multiple branches tips with --depth 1 #329

Open
@askoriy

Description

@askoriy

I need to checkout developing branch and then compare changes with the master branch.
By default actions/checkout@v2 fetches only one branch, and the only option to fetch multiple branches is to use fetch-depth: '0', which retrieves all history for all branches and tags, wasting time and traffic.

With git my issue is solving as clone --depth 1 --no-single-branch --branch developing <uri>
So next pipeline can operate with git diff origin/master

Is there a way to retrieve all (or some) branch tips without retrieving the whole history with this GHA?

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