Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.13 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.13 KB

Semantic changelog generator

This action prints generates a pretty changelog from semantic commits.

example

Inputs

base

Required The base ref for git log

head

Required The head ref for git log

Outputs

changelog

The generated changelog

Example usage

# make sure to set fetch-depth to 0!
- uses: actions/checkout@v3
  with:
    fetch-depth: 0

- uses: nielstenboom/semantic-changelog-generator@v1
  id: changelog
  with:
    base: v1.0.0
    head: main

- name: Get the changelog
  run: |
    cat << "EOF"
    ${{ steps.changelog.outputs.changelog }}
    EOF

NOTE: if you want to enter branches with forward slashes in them, you should add 'origin/' in front

# make sure to set fetch-depth to 0!
- uses: actions/checkout@v3
  with:
    fetch-depth: 0

# point to branch with forward slashes with 'origin' prepended
- uses: nielstenboom/semantic-changelog-generator@v1
  id: changelog
  with:
    base: v1.0.0
    head: origin/my/branch/with/forward/slashes

- name: Get the changelog
  run: |
    cat << "EOF"
    ${{ steps.changelog.outputs.changelog }}
    EOF