release-changelog-builder-action: Error: The process '/usr/bin/git' failed with exit code 128
So im trying to create my first workflow in order to create a good and automate changelog, but i think im missing in something because i cant stop getting this error.
I want to use as a trigger the push to main, in this case to confirm the merge of the PR, what do u recommend me? This is my error.

And this is the changelog.yml
name: changelog
on:
push:
branches:
- main
paths-ignore:
- 'package.json'
- 'CHANGELOG.md'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Release Changelog Builder
uses: mikepenz/release-changelog-builder-action@v1.5.0
with:
fetch-depth: 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (12 by maintainers)
Commits related to this issue
- Fix ci: https://github.com/mikepenz/release-changelog-builder-action/issues/199\#issuecomment-789359910 — committed to tiann/eadb by tiann 2 years ago
Hi @tomijais
you will need to checkout the repository within your build, as GitHub actions doesn’t do that automatically. See an example here: https://github.com/mikepenz/FastAdapter/blob/develop/.github/workflows/ci.yml#L15-L18
The
fetch-depthcomment in the README also references thecheckoutaction (so please remove that part from this libraries action)You can also see the action being used for example in this build here: https://github.com/mikepenz/FastAdapter/blob/develop/.github/workflows/ci.yml#L117-L125
You can find the logic doing this here: https://github.com/mikepenz/release-changelog-builder-action/blob/develop/src/tags.ts#L103-L107
@kaermorchen do you have
fetch-depth: 0in your checkout action? If not you’ve only checked out a single merge commit, which won’t have any tags with it.