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

Fetching tags from GitHub Actions #286

Closed
LittleCornerDev opened this issue Mar 2, 2024 · 2 comments
Closed

Fetching tags from GitHub Actions #286

LittleCornerDev opened this issue Mar 2, 2024 · 2 comments

Comments

@LittleCornerDev
Copy link

LittleCornerDev commented Mar 2, 2024

Hi!

Just wondering if there is a recommended workaround for getting this to run correctly when the npm script that calls auto-changelog is called from GitHub Actions?

Right now, it only finds the latest tag from GitHub actions but finds multiple tags when run locally.

@ljharb
Copy link
Contributor

ljharb commented Mar 2, 2024

Check the https://github.com/actions/checkout readme and look for "fetch-tags"

@LittleCornerDev
Copy link
Author

@ljharb Awesome! Thank you so much for pointing me in the right direction 🤗.

I updated my GHA checkout step to have fetch-depth: 0 as documented and have verified that the generated changelog now includes all tags.

Fetch all history from all tags and branches

- uses: actions/checkout@v4
  with:
    fetch-depth: 0

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

2 participants