You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by ad...@apache.org on 2026/04/10 12:27:56 UTC

(polaris) branch main updated: Releasey: fix missing index.yaml in dist/dev Helm repo (#4154)

This is an automated email from the ASF dual-hosted git repository.

adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new a1b319219f Releasey: fix missing index.yaml in dist/dev Helm repo (#4154)
a1b319219f is described below

commit a1b319219f16da99fbf713fcba92bba45425e285
Author: Alexandre Dutra <ad...@apache.org>
AuthorDate: Fri Apr 10 14:27:50 2026 +0200

    Releasey: fix missing index.yaml in dist/dev Helm repo (#4154)
    
    This PR fixes a missing index.yaml file in the `dist/dev` Helm chart repository when using the automated release process.
    
    The release-3 workflow currently performs the following steps:
    
    1. Copies the generated `index.yaml` into the SVN working copy
    2. Copies `artifacthub-repo.yml` into the SVN working copy
    3. Runs `svn add` for `artifacthub-repo.yml`
    4. Runs `svn commit`
    
    But it never runs `svn add` for `index.yaml`. This worked before because `index.yaml` was already tracked by SVN.
    
    But now, when the release-4 workflow runs `svn mv` to move `index.yaml` from `dist/dev` to `dist/release`, the file is no longer tracked in `dist/dev`. The next release-3 workflow run copies a new `index.yaml` into the working directory, but since it's untracked, `svn commit` silently ignores it.
---
 .github/workflows/release-3-build-and-publish-artifacts.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release-3-build-and-publish-artifacts.yml b/.github/workflows/release-3-build-and-publish-artifacts.yml
index f1d8be7240..02bb575933 100644
--- a/.github/workflows/release-3-build-and-publish-artifacts.yml
+++ b/.github/workflows/release-3-build-and-publish-artifacts.yml
@@ -504,7 +504,9 @@ jobs:
           exec_process cp "helm/polaris/artifacthub-repo.yml" "${dist_dev_dir}/helm-chart/artifacthub-repo.yml"
 
           exec_process cd "${dist_dev_dir}"
-          # Add artifacthub-repo.yml if not already versioned
+          # Add index.yaml and artifacthub-repo.yml if not already versioned
+          # (they are removed from dist dev by workflow 4 after each release)
+          exec_process svn add helm-chart/index.yaml || true
           exec_process svn add helm-chart/artifacthub-repo.yml || true
           # Commit the updated index and artifacthub-repo.yml
           exec_process svn commit --username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive -m "Update Helm index and artifacthub-repo.yml for ${version_without_rc} RC${rc_number}"