dmnemec / copy_file_to_another_repo_action

This GitHub Action copies a file from the current repository to a location in another repository
Apache License 2.0
183 stars 206 forks source link

Pushing to a private gitlab repo #17

Open axonasif opened 3 years ago

axonasif commented 3 years ago

Hi, Can I use this to push a file to a private GitLab repo from one of my public GitHub repo?

dmnemec commented 3 years ago

Never tried it. IIRC everything is based on git, so anything using git should work as expected. I'm working with GitLab now almost exclusively so I can see if that's possible maybe this week.

dmnemec commented 3 years ago

After reviewing the code, it wouldn't be possible to push to GitLab right now. It should be a pretty easy change to make though. I'd start here and here if interested.

axonasif commented 3 years ago

After reviewing the code, it wouldn't be possible to push to GitLab right now. It should be a pretty easy change to make though. I'd start here and here if interested.

Makes sense, I'll give it a try soon. Thanks.

firasm commented 3 years ago

After reviewing the code, it wouldn't be possible to push to GitLab right now. It should be a pretty easy change to make though. I'd start here and here if interested.

Thanks for this! I was able to get this working for GitHub enterprise as well just by changing those two lines and using a PAT to login.

I suppose it would be good to have this configurable later via variables, but probably not worth the effort.

Great stuff.

sta-szek commented 3 years ago

https://github.com/dmnemec/copy_file_to_another_repo_action/pull/28