helm / chart-releaser-action

A GitHub Action to turn a GitHub project into a self-hosted Helm chart repo, using helm/chart-releaser CLI tool
https://github.com/helm/chart-releaser
Apache License 2.0
559 stars 206 forks source link

git fetch don't work as expect during the calculation of the release #113

Open diegolagospagopa opened 2 years ago

diegolagospagopa commented 2 years ago

In the file cr.sh you use the function lookup_latest_tag() to download all the tags and later on, calculate the next release to create.


lookup_latest_tag() {
    git fetch --tags > /dev/null 2>&1

    if ! git describe --tags --abbrev=0 2> /dev/null; then
        git rev-list --max-parents=0 --first-parent HEAD
    fi
}

Unfortunately git fetch --tags don't work as expected and miss the last tags. To avoid this problem i put a git pull --tags to force this process. And all work as expected