Skip to content

A GitHub action to create major and minor git tags from the last tag.

License

Notifications You must be signed in to change notification settings

GiladE/additional-tags-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

additional-tags-action

A GitHub Action to create major and minor git tags from the last tag.

GitHub tag License

Usage

on:
  push:
    tags:
      - v[0-9]+.[0-9]+.[0-9]+
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: vweevers/additional-tags-action@v2

If your tag is v2.4.8 (for example) then this action will create 2 additional tags (v2 and v2.4) and push them to GitHub, replacing existing tags. If the tag is a prerelease (not x.x.x) or not prefixed with v then nothing happens.

Why

Useful to release actions. Consumers of your action can now pin to either a:

  • Major version (uses: my-action@v2)
  • Minor version (uses: my-action@v2.4)
  • Exact version (uses: my-action@v2.4.8)

Inputs

None.

License

MIT

About

A GitHub action to create major and minor git tags from the last tag.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%