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
cannot get correct short sha for pull requests #30
Comments
Hi @masterkain, I'm happy to help! 💪 The action uses the default environment variable For demonstration purposes I made a demo PR from a demo branch: In this case the Can I close the issue? |
hello, |
Default CI_SHA/GITHUB_SHA is the sha of _expect-to-be_ merge/squash/etc commit of the pull requests, and it can be very confusing. If you mark you artifacts with it, its very hard to trace back what was the actual commit. CI_PR_SHA is the way I solved it for my use cases and I can see im not the first one with this problem. Fixes FranzDiebold#30
@masterkain were you looking for something like this? #48 |
I have a workflow based on this:
and I'm using
SHA8: ${{ env.CI_SHA_SHORT }} in my job
however the resulting SHA is not something that I can use, it does not correspond to anything in the repo.
The text was updated successfully, but these errors were encountered: