-
Notifications
You must be signed in to change notification settings - Fork 24
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
Action doesn't seem to get the right revision value #29
Comments
@jbanulso Can you share the trigger for the workflow. Are you triggering on [push] or [pull_request]? |
It's like this:
|
Ok, it looks like the GITHUB_SHA environment variable isn't the HEAD commit of the branch for action type pull_request: https://github.community/t/github-sha-not-the-same-as-the-triggering-commit/18286 We will work on a fix to grab the SHA of the tip commit on the branch a different way. |
Thanks for the report! |
No problem, thank you for looking into it. And for the record, it works fine when the trigger is |
@jbanulso This fix was released last week. Let us know if you are still seeing issues. |
Hi,
I'm trying to use this action in our workflows to get PR checks and detailed information on runs for each commit, however I can't seem to get this work.
I get this from the logs:
However that SHA is not the last commit SHA on my PR, but rather a SHA of a "detached HEAD state", which I can confirm if I try to visit the url of that SHA in github.com, I get a warning saying "This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository".
Am I doing something fundamentally wrong? I am using the action as in the example in the README.
The text was updated successfully, but these errors were encountered: