You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation, the default behavior is for this action to checkout at $GIT_SHA. I'm observing it actually checking out the head of the branch, which can be different from $GIT_SHA when very quick commits are made.
To reproduce this, just git commit and then git push a few times quickly with commands like this:
git commit -a --allow-empty -m "quick push" && git push
git commit -a --allow-empty -m "quick push2" && git push
git commit -a --allow-empty -m "quick push3" && git push
git commit -a --allow-empty -m "quick push4" && git push
git commit -a --allow-empty -m "quick push5" && git push
According to the documentation, the default behavior is for this action to checkout at $GIT_SHA. I'm observing it actually checking out the head of the branch, which can be different from $GIT_SHA when very quick commits are made.
To reproduce this, just git commit and then git push a few times quickly with commands like this:
And then look at the action
The action prints out the environment and includes this:
But the checkout action did this:
If I look at the git log:
I can see that the checkout matches the commit called
quick push4
even though the action says that it's testingquick push
The solution is to checkout $GIT_SHA at the end of the checkout procedure.
The text was updated successfully, but these errors were encountered: