tetchel/Get Commit Data
Derive additional commit data for the current workflow
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
no inputs
Outputs
| name | description |
|---|---|
| branch | HEAD branch |
| is_pr | 'true' if this is a PR workflow, else 'false'. |
| pr_head | The pull request head ref (the ref the PR is "coming from"). Empty if (!is_pr). |
| pr_base | The pull request base ref (the ref that is "receiving" the PR). Empty if (!is_pr). |
| tags | All 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. |
| tag | If 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_count | The integer number of tags in "tags". |
| short_sha | First 7 characters of the HEAD commit. |