zenhubhq/Get Git SHA for PR or Branch Build

Get Git SHA for PR or Branch Build

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github_shashould be github.shayes
github_event_pull_request_head_shashould be github.event.pull_request.head.shayes
github_event_numbershould be github.event.numberyes
github_event_pull_request_base_refshould be github.event.pull_request.base.refyes
github_event_refshould be github.event.refyes
github_head_refshould be github.head_refyes
github_refshould be github.refyes
namedescription
shaif pull request : 'github.event.pull_request.head.sha' else : 'github.sha'
isPullRequest'true' or 'false'
uniqueNameif pull request: 'inputs.github_event_number' else : short 'github.sha'
baseBranchif pull request: 'github.event.pull_request.base.ref' else : short 'github.event.ref' stripped out of 'refs/heads/'
currentBranchif pull request: 'github.event.pull_request.base.ref' else : short 'github.event.ref' stripped out of 'refs/heads/'