tetchel/Get Commit Data

Derive additional commit data for the current workflow

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None

no inputs

namedescription
branchHEAD branch
is_pr'true' if this is a PR workflow, else 'false'.
pr_headThe pull request head ref (the ref the PR is "coming from"). Empty if (!is_pr).
pr_baseThe pull request base ref (the ref that is "receiving" the PR). Empty if (!is_pr).
tagsAll tags that point at the HEAD commit. If there are no tags, this is the empty string. If there are multiple tags, they are sorted alphabetically and separated by spaces.
tagIf tags is not empty, this is the first tag alphabetically. This way, you can know that this output contains exactly one or zero tags.
tags_countThe integer number of tags in "tags".
short_shaFirst 7 characters of the HEAD commit.