Skip to content

nielstenboom/semantic-changelog-generator

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

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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