Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 726 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 726 Bytes

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/[email protected]

Get the previous tag with a tag pattern

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

- uses: younited/[email protected]
  with:
    match: *.hotfix