Skip to content

Can mirror-action be used for a pull vs push? #8

@connecteev

Description

@connecteev

@spyoungtech first off thanks for this useful project. Is it possible to use this to mirror a repo as a "Pull" rather than a "Push"?

My understanding is as such:

  • The mirror-action yml file needs to be added to a local repo A (that you own), and the action would "push" all branches from your local repo A to your remote repo B (on github, gitlab, bitbucket, what have you).

Can this action be used to "pull" instead? The situation is as such: I have read-only access to a private github repo, and I would like to mirror all branches from that repo into one I own and control. If it's possible, what would the yml config look like?

So far I was trying to use https://github.com/actions/checkout but I probably didnt end up configuring it right. A search led me to your repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions