Manually revert #28883
Created by: jhchabran
See https://sourcegraph.slack.com/archives/C07KZF47K/p1639482287186000 this breaks code-intel because being triggered by a pull_request
rather than a push
changes the checkout behaviour.
QA: https://github.com/sourcegraph/sourcegraph/runs/4519842779?check_suite_focus=true
cc @bobheadxi (I totally did not foresee that when we merged the original PR Oo)