I'd like to run an action on a pull_request and check out the actual content of the PR, not a merge with master (because I want it to run even if there is a merge conflict among other reasons). Support for specifying this has been requested on the community forum.
I've tried the following:
with:
ref: ${{ github.ref }}^2
Which causes a failure because it tries to do:
git fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/pull/3/merge^2:refs/remotes/pull/3/merge^2
which is an invalid refspec.
Doing this seems to just get completely ignored:
with:
ref: ${{ github.sha }}^2
I haven't found a way to use $GITHUB_SHA yet either (it seems to be used literally when in a with block).
I'd like to run an action on a pull_request and check out the actual content of the PR, not a merge with
master(because I want it to run even if there is a merge conflict among other reasons). Support for specifying this has been requested on the community forum.I've tried the following:
Which causes a failure because it tries to do:
which is an invalid refspec.
Doing this seems to just get completely ignored:
I haven't found a way to use
$GITHUB_SHAyet either (it seems to be used literally when in awithblock).