iam-medvedev / action-conventional-commit

Conventional commit parser

Home Page:https://github.com/marketplace/actions/conventional-commit-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conventional commit parser

Inputs

Field Description Required Default
token Github token
major Labels for major version '[]'
minor Labels for minor version '["feat"]'
patch Labels for patch version '[]'

Outputs

Field Description
label Parsed commit label
type Commit type (major/minor/patch)

Example usage

- name: Parse commit
  uses: iam-medvedev/action-conventional-commit@v1
  id: get-label
  with:
    token: ${{ secrets.GITHUB_TOKEN }}

- name: Get latest version
  uses: actions-ecosystem/action-get-latest-tag@v1
  id: get-latest-tag
  with:
    semver_only: true
    with_initial_version: true
    initial_version: v1.0.0

- name: Update version
  uses: actions-ecosystem/action-bump-semver@v1
  id: bump-semver
  with:
    current_version: ${{ steps.get-latest-tag.outputs.tag }}
    label: ${{ steps.get-label.outputs.type }}

About

Conventional commit parser

https://github.com/marketplace/actions/conventional-commit-parser


Languages

Language:TypeScript 88.6%Language:Dockerfile 8.5%Language:Makefile 2.8%