Skip to content

Calver Release

Actions
Automatically create Calver compliant tags or releases based on PR labels
v1.6
Latest
Star (17)

Calver Releaser for Github Actions

Create calver release (YYYY.VV)

Inputs

release_branch

Branch to tag. Default master.

name

The title of the release. Default release: version ${NEXT_RELEASE}.

message

The message of the release. Default generate conventional changelog.

draft

Is a draft ?. Default false.

pre

Is a pre-release ?. Default false.

release

Create a new release ?. Default true.

date_format

Set the date format in posix shell. Default %Y.%V (Year.Week - 2020.45).

version_regexp

Extended regexp for grep to match existing versions. It has to be consistent with date_format. Default ^20[^\-]*$ (catches everything without - starting 20).

patch_separator

Separator to use between version and patch level. Default: .

Output

release

The new release version.

title

Release title

changelog

Changelog generated for the release body

draft

Is the release a draft

pre

Is the release a pre-release

created

Was a release created

Example usage

    steps:
      - uses: actions/checkout@v2
        
      - name: Calver Release
        uses: StephaneBour/actions-calver@master
        id: calver
        with:
          date_format: "%Y-%m-%d"
          release: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Deploy
        env:
          VERSION: ${{ steps.calver.outputs.release }}
        run: ./deploy ${VERSION}

Calver Release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Automatically create Calver compliant tags or releases based on PR labels
v1.6
Latest

Calver Release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.