git-mirror-action
git-mirror-action copied to clipboard
Is there a way that I can mirror a repo but not push forcely?
This is the situation: I need synchronize a repository from somewhere to Github, and do it daily or weekly. Using Github actions is a good choice. So I add .github/workflows/main.yml
for doing this job after I mirrored the repo. However, every time after mirroring, my .github/workflows/main.yml
will vanish dut to it is not in the source repo.
I'm wondering if there's a way that the synchronization is not forcely so that Github actions job keeps safe.