Skip to content

dshershov/semver-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semantic Versioning Git Auto Tag Action

A GitHub action that generates SemVer compatible tag on repository commits.

Usage example

By default, the action will create git version tag per commit to primary branch. Default format of tag: rc/x.y.z. Any user can create [RELEASE] <anything commit. After that action will create release/x.y branch. Versions in a release branch will have a format x.y.z.

Input variables

  • primary_branch

    • The primary branch that will be used for setting RC tag versions
    • It's optional variable, default value is master
  • init_version

    • The initial project version
    • It's optional variable, default value is 0.0.0

Action example

name: My pipeline
on:
  push:
    branches:
      - 'master'
      - 'release/**'

jobs:
  build:
    runs-on: ubuntu-20.04
    steps:
      -
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      -
        name: Set application version
        id: set_version
        uses: kvendingoldo/[email protected]

      # any other steps

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.8%
  • Dockerfile 2.2%