output final commit sha
See original GitHub issueIs your feature request related to a problem? Please describe
No
Describe the solution you’d like
core.setOutput('sha', sha)
so user can access this commit by ${{ steps.gh-pages.outputs.sha}}
Describe alternatives you’ve considered
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How do I get the hash for the current commit in Git?
To turn any extended object reference into a hash, use git-rev-parse : git rev-parse HEAD. or git rev-parse --verify HEAD. To retrieve the...
Read more >2.3 Git Basics - Viewing the Commit History
As you can see, this command lists each commit with its SHA-1 checksum, the author's name and email, the date written, and the...
Read more >How to Retrieve Hash for Commits in Git - W3docs
Git allows recovering wrong changes in a project. This tutorial shows how to find information about the latest commit and get the latest...
Read more >provide git commit hash in outputs · Issue #209 - GitHub
Including the SHA in the cache key seems wrong since it will change every run. I'm thinking of scenarios like npm. Restoring from...
Read more >Viewing the commit history of a Git repository - DeployHQ
If you have the hash for a commit, you can use the git show command to display the changes for that single commit....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Could someone test #514 as follows?
I tested this on a current workflow I’m using for an Hugo site and it works as expected 👍
Thanks a lot for this feature!