/get-previous-tag-action

Action to get the previous tag. Filters can be applied with a tag pattern.

MIT LicenseMIT

get-previous-tag-action

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.

Inputs

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

Outputs

  • previous-tag - The previous tag

Usage

Get the previous tag

- uses: younited/get-previous-tag-action@v1.0.0

Get the previous tag with a tag pattern

Return a tag such as RELEASE.2022-01-10.hotfix:

- uses: younited/get-previous-tag-action@v1.0.0
  with:
    match: *.hotfix