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
As mentioned in #573, the checkout action does all it can to present, during repeated runs, the state of the checked out repo the way it was during the first run. The problem I am trying to solve is to detect whether the commit referenced by GITHUB_SHA is still the latest in the branch being processed, to be able to skip some deployment-like activities. Is there any way to get sha of current latest commit in specific branch without resorting to extra accesses to remote repo? Something like git log -1 --pretty=format:"%H" origin/main doesn't work due to a forced update done by the checkout action.
The text was updated successfully, but these errors were encountered:
As mentioned in #573, the
checkout
action does all it can to present, during repeated runs, the state of the checked out repo the way it was during the first run. The problem I am trying to solve is to detect whether the commit referenced byGITHUB_SHA
is still the latest in the branch being processed, to be able to skip some deployment-like activities. Is there any way to get sha of current latest commit in specific branch without resorting to extra accesses to remote repo? Something likegit log -1 --pretty=format:"%H" origin/main
doesn't work due to a forced update done by thecheckout
action.The text was updated successfully, but these errors were encountered: