Skip to content

GitHub Action used to compute the next version for a release based on date and existing tags

Notifications You must be signed in to change notification settings

sortlist/release-version-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Version

GitHub Action used to compute the next release version based on the following format:

<Year>.<ISO week number>.<increment>-<release candidate increment>

Usage

To use the action you can add the following to your GitHub Action workflow file:

jobs:
  build:
    name: build
    runs-on: ubuntu-latest

    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Next version
        id: next_version
        uses: sortlist/release-version-action@main
        with:
          prefix: v
          prerelease: true
          prerelease-prefix: rc.

      - name: Show version
        run: echo "${{ steps.next_version.outputs.version }}"

Inputs

  • prefix: - a prefix added to the version (default: v)
  • prerelease: - if the current version represents a prerelease, incrementing the prerelease counter (default: false)
  • prerelease-prefix: - the prefix of the pre-release part of the version (default: rc.)

Outputs

  • version - will contain the computed version

Tests

LC_CTYPE=C ./test/test.bats

About

GitHub Action used to compute the next version for a release based on date and existing tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages