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. image

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

Most upvoted comments

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-depth comment in the README also references the checkout action (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

@kaermorchen do you have fetch-depth: 0 in your checkout action? If not you’ve only checked out a single merge commit, which won’t have any tags with it.