Skip to content

fix(workflow): move chart release workflow and fix fetch-depth bug#326

Merged
yonahd merged 3 commits intoyonahd:mainfrom
Yuni-sa:fix-chart-releaser
Jul 5, 2024
Merged

fix(workflow): move chart release workflow and fix fetch-depth bug#326
yonahd merged 3 commits intoyonahd:mainfrom
Yuni-sa:fix-chart-releaser

Conversation

@Yuni-sa
Copy link
Copy Markdown
Contributor

@Yuni-sa Yuni-sa commented Jun 27, 2024

What this PR does / why we need it?

  • Moved the Helm chart release steps from release.yml to a new chart-release.yml workflow for better separation of concerns.
  • Fixed a bug where the chart-releaser-action wouldn't find changes by adding fetch-depth: 0 in the checkout step.

PR Checklist

  • This PR adds K8s exceptions (false positives)
  • This PR adds new code
  • This PR includes tests for new/existing code
  • This PR adds docs
  • This PR changes the project workflow

GitHub Issue

Closes #325

Notes for your reviewers

  • Moved the Helm chart release steps from release.yml to chart-release.yml for better separation of concerns and to avoid slowing down the main CI process with fetch-depth: 0.

…ch-depth bug

- Moved the Helm chart release steps from release.yml to a new chart-release.yml workflow for better separation of concerns.
- Fixed a bug where the chart-releaser-action wouldn't find changes by adding fetch-depth: 0 in the checkout step.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 27, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.01%. Comparing base (181141d) to head (1ec6858).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #326   +/-   ##
=======================================
  Coverage   42.01%   42.01%           
=======================================
  Files          61       61           
  Lines        3175     3175           
=======================================
  Hits         1334     1334           
  Misses       1633     1633           
  Partials      208      208           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread .github/workflows/chart-release.yml Outdated
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.RELEASE_GITHUB_TOKEN }}"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the token for install helm?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! The token is no longer needed. It was previously required to fetch the latest version, but that's not the case anymore.
Azure/setup-helm#130.

@yonahd
Copy link
Copy Markdown
Owner

yonahd commented Jul 4, 2024

@Yuni-sa I added a comment.
If we're good let's merge this and test

Copy link
Copy Markdown
Owner

@yonahd yonahd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@yonahd yonahd merged commit eb19f01 into yonahd:main Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(workflow): chart releaser failed to release new chart

3 participants