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

Urgent: Causing conflict with workflows running simultaneously #81

Open adi658 opened 1 year ago

adi658 commented 1 year ago

hello @dmnemec ,

this works great when there is a single workflow going on However, in my case there are 2 workflows running simulataneously and pushing different files to same repo It fails saying there is another git operation going on and some of the work is not present locally - and asks me to do a pull before push.

how do I use this action in this case.

jpg1985 commented 9 months ago

I got the same race condition

[remote rejected] HEAD -> master (cannot lock ref 'refs/heads/master': is at 08763f3c8cf9f13b1233333f694ba7b28 but expected ca5e90123123aaaaa277143d4)

jpg1985 commented 9 months ago

@adi658 I have used a retry action as a workaround, specifically in my case, im using matrix strategy, its been quite useful for my setting parallelism to 1