-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
[BUG] Not able to compare current commit with the specific commit of a branch(in the Pull request event) #441
Comments
@genieai-vikas Can you provide the entire log output and also include the exact value for
Can you also confirm that |
@genieai-vikas based on this test there doesn’t appear to be a bug. I’ll suggest double checking the output from the previous action. |
@jackton1 I'll will double-check and let you know. |
@genieai-vikas The link I shared redirects to this step in the logs the error you highlighted is coming from a failure test case i.e using a non existing hash |
@jackton1 I checked again(with v18.4). Still, It does not show the expected behavior. Output logs:
|
I have the same issue. It looks like something causes it to use the wrong INPUT_CURRENT_SHA. |
Ugh my issue was somewhere else and I tripped over INPUT_CURRENT_SHA being set to the local merge commit which of course isn't available in my local checkout. Anyway, seems to work fine for me. |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
I was passing base_sha so I can compare the current commit with the specific commit of a current branch. In v17.3, I can confirm it was working fine. Here is the output this is the base_sha I passed
6fbaee054706cfe09dbd3330e494ffc4fdb3a182
and this is the current sha92774edb6ac6d323cdf3r74f1e3a8f8237bce051
but in v18 and v18.3: even after passing
base_sha
it's comparing the target branch SHA and current branch SHA. here is the output. The value of ${{needs.pre_ci.outputs.PREVIOUS_GITHUB_SHA}} is a891480e4a3927dd6e674e1d0bb50324f078da8aAlso, I also tried setting
since_last_remote_commit: "true"
but it's showing the wrong current SHA. I see this in Logs:but actually, the
CURRENT_SHA
is0f4593fb6411c7ad1be277bc0a9872953d2a3403
As [er your comment "To your second point the sha you are seeing is a merge commit of the base branch into your PR branch which is why that’s different and it’s done by the checkout action." but this was not the case in
v17.3
To Reproduce
I think there is a new bug in v18 and v18.3. The below code was working fine in 17.3 but not anymore
What OS are you seeing the problem on?
macos-11
Expected behavior?
I should be able to compare the latest commit of the current branch with the specific commit of the same branch(In pull request event)
Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: