orhun / git-cliff-action

GitHub action to generate a changelog based on the Git history
https://github.com/orhun/git-cliff
Apache License 2.0
117 stars 14 forks source link

`config` doesn't seem to work with a subdirectory? #15

Closed johnbatclari closed 7 months ago

johnbatclari commented 7 months ago

Hi Orhun, thank you for git-cliff-action! It's truly the bees knees! :)

I think I may have found a quirk with config. The following doesn't work as expected:

      - name: Update Changelog
        id: changelog
        uses: orhun/git-cliff-action@v2
        with:
          config: config/cliff.toml
          args: --verbose --unreleased --tag ${{ steps.monotag.outputs.tag }} --include-path "${{ inputs.gradle-working-directory }}/**" --include-path "buildSrc/**"
        env:
          OUTPUT: ${{ inputs.gradle-working-directory }}/CHANGELOG.md

I get the following:

WARN git_cliff > "cliff.toml" is not found, using the default configuration.

However, passing the config file location in args works as expected:

      - name: Update Changelog
        id: changelog
        uses: orhun/git-cliff-action@v2
        with:
          args: -c config/cliff.toml --verbose --unreleased --tag ${{ steps.monotag.outputs.tag }} --include-path "${{ inputs.gradle-working-directory }}/**" --include-path "buildSrc/**"
        env:
          OUTPUT: ${{ inputs.gradle-working-directory }}/CHANGELOG.md

Not a big deal as there's a clear workaround but thought I'd drop a line here.

orhun commented 7 months ago

Hello! 🐻

I just tried this with a fresh repo but I couldn't reproduce it :/

Can you share more information or maybe share the repository if possible?

johnbatclari commented 7 months ago

@orhun I haven't been able to reproduce in a fresh repo either. Looking into what might be different between the test repo and my production repo. Thanks!

PS: I did find an issue with sparce-checkouts but will log a different issue for that one, with an example repo.