Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chart update workflow #365

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Fix chart update workflow #365

merged 2 commits into from
Jul 10, 2023

Conversation

cheels
Copy link
Contributor

@cheels cheels commented Jul 9, 2023

Updated chart-update.yml workflow. Now the chart version will be updated even if the new Management center was released

@cheels cheels requested a review from hasancelik July 9, 2023 20:44
@semihbkgr semihbkgr self-requested a review July 10, 2023 06:10
@@ -98,22 +98,30 @@ jobs:
echo "HZ_LATEST_TAG=${HZ_LATEST_TAG}" >> $GITHUB_ENV
echo "MC_LATEST_TAG=${MC_LATEST_TAG}" >> $GITHUB_ENV

if [[ $HZ_LATEST_TAG != $APP_VERSION ]]; then
if [[ $HZ_LATEST_TAG != $APP_VERSION && $MC_LATEST_TAG != $MC_VERSION ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it correct to use && operator in this condition? The condition will be true when the new version of both Hazelcast and ManagementCenter are released.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@semihbkgr Yes, it is correct :)
Shortly there are 3 conditions:

  1. If HZ and MC tags appear => increase the chart version based on the HZ version => and change the HZ and MC versions everywhere.
  2. If the HZ tag appeared => increase the chart version based on the HZ version => and change the HZ versions everywhere.
  3. If the MC tag appeared => increase the chart version based on the MC version => and change the MC versions everywhere.

@hasancelik hasancelik requested review from cagric0 and hasancelik and removed request for hasancelik and cagric0 July 10, 2023 12:27
@cheels cheels merged commit c95a63f into master Jul 10, 2023
1 check passed
@cheels cheels deleted the fix-chart-update-workflow branch July 10, 2023 20:07
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.

3 participants