repo-sync / github-sync

⤵️ A GitHub Action for syncing current repository with remote
https://github.com/marketplace/actions/github-repo-sync
MIT License
393 stars 103 forks source link

Action file is overridden #16

Closed flynfish closed 4 years ago

flynfish commented 4 years ago

How do you prevent the action file from being overwritten when the master branch is synced from the remote repo?

I tried putting the repo-sync.yml in a different branch but it doesn't seem that github runs workflows from branches other than master?

flynfish commented 4 years ago

In order to solve for this I had to put the action file in a different branch and make that branch the default branch so github would pick it up and run it

wei commented 4 years ago

Yes, GitHub only uses workflows in the default branch. Thanks for sharing your use case and solution.