ajgranowski/Preceding Tag Action

Find the latest/previous/last/preceding tag of a commit using only the GitHub API, similar to git describe.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
default-tagThe default tag to return if no preceding tag was found.no""
include-refIf true, include tags pointing to `ref` as candidates.nofalse
limit-tagsTag fetch limit. Only tags matching `regex` count towards this limit. Increasing this may produce a more accurate result when `ref` is very far away from `HEAD`.no100
limit-traversal-commitsThe commit traversal limit while searching for a preceding tag.no1000
limit-traversal-tagsThe tag traversal limit while searching for a preceding tag. Behaves similar to `--candidates` on `git describe`.no6
refThe branch, tag, or SHA to find the preceding tag from.yes${{ github.sha }}
regexA regular expression used to filter candidate tag names.no^.+$
repositoryRepository name with owner. For example, `AJGranowski/preceding-tag-action`no${{ github.repository }}
tokenPersonal access token (PAT) used to fetch the tags.no${{ github.token }}
namedescription
tagThe preceding tag, or `default-tag` if no preceding tag matching the filter was found.
tag-foundTrue if the preceding tag was found. False if the `default-tag` fallback was used.