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
182 stars 201 forks source link

Fix concurrent push #49

Closed NguyHa03 closed 1 year ago

NguyHa03 commented 2 years ago

The pushing step would fail if there are 2 or more repos do push at the same time to another repo, in that case we need to rebase the commit before pushing again.

NguyHa03 commented 2 years ago

@dmnemec please help me review this PR

dmnemec commented 2 years ago

Just saw the notification. I'll check this out this weekend when I get some time. Pretty sure I'll need to write a new test for this case.

dmnemec commented 2 years ago

Okay, checks are failing. This PR (and all others) should now run checks when you commit changes. Failure looks like it might be related to the branch names for the receiving repo, I'll have to dig into it. There's only a main and dev branch on that repo right now.