Pushing git commit
+ git push -u origin HEAD:main
To https://github.com/JoseRodrigues443/joserodrigues443.github.io.git
! [rejected] HEAD -> main (fetch first)
error: failed to push some refs to 'https://github.com/JoseRodrigues443/joserodrigues443.github.io.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
The cause
Basically on a matrix, I selected 3 files to run the dmnemec/copy_file_to_another_repo_action action.
One is pushed, success, the second is pushed, fails because the origin changed... The action could make a git pull to make sure the push will succeed.
The use case can be seen here:
https://github.com/JoseRodrigues443/Awesome-CV/blob/master/.github/workflows/main.yml
The build error:
The cause
Basically on a matrix, I selected 3 files to run the
dmnemec/copy_file_to_another_repo_action
action.One is pushed, success, the second is pushed, fails because the origin changed... The action could make a
git pull
to make sure the push will succeed.If the merge fails, ok let it fail.