actions-marketplace-validations/gh-describe
Emulate `git describe --tags` for shallow clone repositories.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Personal Access Token (PAT) | — | ${{ github.token }} |
| repo | Target repository | — | ${{ github.repository }} |
| commit-ish | Commit-ish object names to describe. The commit sha that triggered the workflow run. | — | ${{ github.sha }} |
| match | Only consider tags matching the given glob pattern. | — | "" |
| exclude | Do not consider tags matching the given glob pattern. | — | "" |
| default | If the name is not found, use this value. | — | "" |
Outputs
| name | description |
|---|---|
| describe | `git describe --tags`-like description. ex) v1.0.4-14-g2414721 |
| tag | The most recent tag. ex) v1.0.4 |
| distance | The number of additional commits from the most recent tag. ex) 14 |
| sha | The object name for the commit itself. ex) 2414721230345897234093645897124245324623 |
| short-sha | The object name for the commit itself. ex) 2414721 |