From 79afd05ea54d91ee339cc1b9eb27dc435588da8a Mon Sep 17 00:00:00 2001 From: Niklas Ye Date: Tue, 28 Jul 2026 11:58:34 +0200 Subject: [PATCH] chart: skip existing releases in chart-release workflow chart-release.yml fires on any charts/** push to main and ran chart-releaser against the committed Chart.yaml version, failing with 422 already_exists whenever that version was already published. A tagged release also publishes the chart from release.yml, which seds the version from the tag, so the two workflows raced and this one lost. Brings it to parity with the chart job in release.yml, which has carried skip_existing since 1451682. --- .github/workflows/chart-release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/chart-release.yml b/.github/workflows/chart-release.yml index 5cf4d07..b25ca31 100644 --- a/.github/workflows/chart-release.yml +++ b/.github/workflows/chart-release.yml @@ -29,5 +29,10 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 + with: + # A charts/** push without a Chart.yaml version bump would otherwise + # fail trying to re-release the current version. Tagged releases also + # publish the chart from release.yml, so the two can race. + skip_existing: true env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"