-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird commit checked out during pull request trigger #1359
Comments
I'm seeing the same thing, it's essentially a merge commit from the parent branch. I'm using - uses: 'actions/checkout@v3'
with:
ref: ${{ github.event.pull_request.head.sha }} for the time being to get around this bug. Other parameters:
|
Could it be that this has to do with the action operating on a (merge) commit that is being created (when the head branch is merged into the base branch)? |
In my case at least, we don't have merge commits on the repo, we rebase and the checkout itself seems to create a merge commit |
This is my trigger
So I have an open PR targeting master from the branch
my-feature
The tip of my branch is:
I also noticed the following in the logs
where
a2f6789
is the tip of the master.Why is it using a distinct commit for the PR?
All the actions from that point on operate on this commit
c1d3b56
The text was updated successfully, but these errors were encountered: