question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

output final commit sha

See original GitHub issue

Is 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:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
peaceiriscommented, Oct 12, 2020

Could someone test #514 as follows?

- name: Deploy
  uses: peaceiris/actions-gh-pages@7e55c73 #514
  id: pages
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}

- run: echo ${{ steps.pages.outputs.dst_sha }}
1reaction
pablukcommented, Oct 21, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found