This GitHub action allows you to get the previous tag from Git. In the case you use several different tags in a monorepo, filters can be applied to help you find a tag using a glob pattern.
By default, this action will fetch all available tags. You can choose to tags with a glob pattern.
match
(optional) - Match tags against the given glob pattern
previous-tag
- The previous tag
- uses: younited/[email protected]
Return a tag such as RELEASE.2022-01-10.hotfix:
- uses: younited/[email protected]
with:
match: *.hotfix