diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 09b42321d58..762a8af2f9b 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -112,7 +112,16 @@ jobs: fi ./temp/clustertool charts genchangelog "$REPO_PATH" "$TEMPLATE_PATH" "$OUTPUT_DIR" - gzip "$JSON_FILE" --best + + # TODO: Test remove later + echo "temp content:" + ls ./temp/ + echo "" + echo "rootcontent" + ls ./ + echo "" + + gzip "$JSON_FILE" --best || echo "Compression failed, ignoring..." - name: Fix Pre-Commit issues shell: bash diff --git a/clustertool/pkg/charts/changelog/changelog.go b/clustertool/pkg/charts/changelog/changelog.go index 30528f9b5e3..3486420251e 100644 --- a/clustertool/pkg/charts/changelog/changelog.go +++ b/clustertool/pkg/charts/changelog/changelog.go @@ -98,6 +98,7 @@ func (o *ChangelogOptions) Generate() error { log.Info().Msgf("Found [%d] active charts in [%s]", len(activeCharts.items), time.Since(start)) // Load existing json file + log.Info().Msgf("Loading json %s", o.JSONOutputPath) if err := changedData.LoadFromFile(o.JSONOutputPath); err != nil { return fmt.Errorf("failed to load existing json file, maybe it is not matching the current structure: %w", err) } @@ -158,6 +159,7 @@ func (o *ChangelogOptions) Generate() error { if err := mergeStagingToCurrent(); err != nil { return err } + log.Info().Msgf("Writhing json to %s", o.JSONOutputPath) if err := changedData.WriteToFile(o.JSONOutputPath); err != nil { return fmt.Errorf("error writing json new file: %s", err) } @@ -171,7 +173,7 @@ func (o *ChangelogOptions) Generate() error { // and we add the commits from stagingData to the nearest next version in changelogData func mergeStagingToCurrent() error { start := time.Now() - log.Info().Msgf("Merging staging to current", ) + log.Info().Msgf("Merging staging to current") changedData.mu.Lock() defer changedData.mu.Unlock()