Skip to content

Diverging Paths when Auto-Committing in Parallel Jobs #290

Answered by stefanzweifel
anerishah18 asked this question in Help
Discussion options

You must be logged in to vote

What you certainly can do, is add a git pull-step, before running git-auto-commit-action.

- name: Pull Remote Changes
  run: git pull

But I'm not this will work 100% of the time. By running jobs in parallel you're potentially creating a race-condition. Which commit should "win", if both commits are created in the same second?

See also these threads, where others had a similar issue:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stefanzweifel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants