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
543 stars 199 forks source link

Support actions triggered by a tag not working #150

Open rgaiacs opened 11 months ago

rgaiacs commented 11 months ago

Related issue: https://github.com/helm/chart-releaser-action/issues/60

Related PR: https://github.com/helm/chart-releaser-action/pull/96

After I create a local tag (v0.1.5) and push it to the repository, GitHub Actions is trigger but I end up with

Run helm/chart-releaser-action@v1.5.0
Run owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
Looking up latest tag...
Discovering changed charts since 'v0.1.5'...
Nothing to do. No chart changes detected.

v0.1.5 was the latest tag (see https://github.com/GESIS-Methods-Hub/andrew-django-admin/actions/runs/5654060646/job/15316375374). Am I missing something?

davidkarlsen commented 11 months ago

You need to use fetch-depth 0 to fetch all revisions.

rgaiacs commented 11 months ago

Thanks @davidkarlsen for the reply. I was already using fetch-depth: 0 and the log showed all the tags being collected:

From https://github.com/GESIS-Methods-Hub/andrew-django-admin
   * [new branch]      main       -> origin/main
   * [new tag]         v0.1.0     -> v0.1.0
   * [new tag]         v0.1.1     -> v0.1.1
   * [new tag]         v0.1.2     -> v0.1.2
   * [new tag]         v0.1.3     -> v0.1.3
   * [new tag]         v0.1.4     -> v0.1.4
   * [new tag]         v0.1.5     -> v0.1.5

The problem persists.

edmondop commented 11 months ago

@rgaiacs did you find a workaround?