Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only getting the last commit on "CHANGELOG.md" #275

Open
felipe-frade opened this issue Jul 24, 2023 · 4 comments
Open

Only getting the last commit on "CHANGELOG.md" #275

felipe-frade opened this issue Jul 24, 2023 · 4 comments

Comments

@felipe-frade
Copy link

felipe-frade commented Jul 24, 2023

My first Issue open in any github project.

When runned (auto-changelog) localy its beatfull, but when the github runs in the workflow, doesnt.

The action is made on a merge.
I use npm.
It run: auto-changelog -p --template changelog-template.hbs --commit-limit false && git add CHANGELOG.md.

But always get only the last commit.
Anyone knows why ?

@ljharb
Copy link
Contributor

ljharb commented Jul 24, 2023

--commit-limit=false?

@felipe-frade
Copy link
Author

I try, but yet only one :(

@felipe-frade
Copy link
Author

my repo: https://github.com/felipe-frade/github-actions-test-2

and the log

teste@1.10.0 version /home/runner/work/github-actions-test-2/github-actions-test-2
auto-changelog -p --template changelog-template.hbs --commit-limit false && git add CHANGELOG.md

auto-changelog: Fetching tags…auto-changelog: 2 version tags found…auto-changelog: Fetched v1.10.0…auto-changelog: Fetched v1.10.0…auto-changelog: 1 kB written to CHANGELOG.md

[email protected] version-json /home/runner/work/github-actions-test-2/github-actions-test-2
auto-changelog --template json --output changelog-data.json

auto-changelog: Fetching tags…auto-changelog: 1 version tags found…auto-changelog: Fetched v1.10.0…auto-changelog: 1 kB written to changelog-data.json

@benwk
Copy link

benwk commented Aug 31, 2023

Hi @felipe-frade, I got a similar problem today. Just try adding fetch-depth: 0 to the Checkout step:

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          # default depth is 1, which is not enough for changelog generation
          fetch-depth: 0

HTH :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants