This action prints generates a pretty changelog from semantic commits.
Required The base ref for git log
Required The head ref for git log
The generated changelog
# 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