Skip to content

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: buildruns-on: ubuntu-lateststeps:
- name: Check out codeuses: actions/checkout@v2
- name: Next versionid: next_versionuses: sortlist/release-version-action@mainwith:
prefix: vprerelease: trueprerelease-prefix: rc.
- name: Show versionrun: 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

2 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages