Skip to content

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

License

Notifications You must be signed in to change notification settings

younited/get-previous-tag-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published