Skip to content

dexwritescode/release-on-merge-action

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

21 Commits
 
 
 
 
 
 

Repository files navigation

Release on Merge Action

Github action to create git tag and Github release on merge.

Usage

Example

on: 
  push:
    branches:
      - main

jobs:
  release-on-merge:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
      - uses: dexwritescode/release-on-merge-action@v1

The only permissions needed for GITHUB_TOKEN to create tags and releases is contents: write.

Inputs

version-increment-strategy

Optional The version number to increment. Default patch.

It can be one of: major, minor, patch, norelease

version-increment-strategy: major

initial-version

Optional If no previous release found in the repo, the default configuration will create release and tag v0.1.0.

The below override will create release and tag v1.2.3

initial-version: '1.2.3'

tag-prefix

Optional Git tag prefix. Example the v in v1.2.3. Default v.

tag-prefix: v

body

Optional Body text to prepend the auto generated body.

body: 'Body text...'

generate-release-notes

Optional Whether to auto-generate Github release notes. Default true.

generate-release-notes: true

dry-run

Optional Do not create a release, just log the oputput if enabled. Default false.

dry-run: true

This action uses release-on-merge-action-source

License

This Github Action is licensed under MIT license.