Skip to content

StephaneBour/actions-calver

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}