Skip to content

workera-ai/calver-tag-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Tag using Calendar Versioning

Create a tag using Calendar Versioning, e.g. v2021.1.0.

Inputs

prerelease

If set, tag the version as prerelease - set to e.g. alpha or beta

prefix

Required Prefix The name of the person to greet. Default "v".

output-only

Only outputs the new version and don't actually tag the commit

Outputs

version

The new version

Example usage

Create a file named .github/workflows/deploy.yml in your repo and add the following:

on: [push]

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: wendbv/calver-tag-action@v1

You can also pass in a prerelease and disable the prefix, this will generate a version like 2021.1.0-beta.0.

on: [push]

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: wendbv/calver-tag-action@v1
        with:
          prerelease: beta
          prefix: ''

You can add output-only to only output the new version and don't actually tag the commit.

on: [push]

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: wendbv/calver-tag-action@v1
        id: tag-version
        with:
          output-only: true
      - name: Get the output version
        run: echo "The new version is was ${{ steps.tag-version.outputs.version }}"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%