diff --git a/.github/workflows/chart-update.yml b/.github/workflows/chart-update.yml index 09203680..0da34195 100644 --- a/.github/workflows/chart-update.yml +++ b/.github/workflows/chart-update.yml @@ -32,7 +32,7 @@ jobs: fi - name: Install yq - uses: mikefarah/yq@v4.43.1 + uses: mikefarah/yq@v4.44.3 - name: Checkout code uses: actions/checkout@v4 @@ -41,9 +41,10 @@ jobs: working-directory: stable id: update_version run: | - HZ_REPO="hazelcast/hazelcast" + echo ${{ env.DEVOPS_GITHUB_TOKEN }} | gh auth login --with-token + HZ_REPO="hazelcast/hazelcast-mono" MC_REPO="hazelcast/management-center" - paths=("hazelcast" "hazelcast-enterprise") + paths=("hazelcast-enterprise") # Function to extract a specific field value from a YAML file extract_version() { @@ -156,19 +157,28 @@ jobs: fi echo "TITLE=$TITLE" >> $GITHUB_ENV echo "BRANCH=$BRANCH" >> $GITHUB_ENV + + PR_NUMBER=$(gh pr list --repo ${GITHUB_REPOSITORY} --search "$TITLE" --json number | jq -r '.[].number') + if [[ -z "$PR_NUMBER" ]]; then + echo "PR_EXIST=false" >> $GITHUB_OUTPUT + echo "PR_EXIST=false" >> $GITHUB_ENV + fi - name: Commit and Push Changes - if: (steps.update_version.outputs.HZ_UPDATED == 'true' || steps.update_version.outputs.MC_UPDATED == 'true') + if: (steps.update_version.outputs.HZ_UPDATED == 'true' || steps.update_version.outputs.MC_UPDATED == 'true') && steps.title.outputs.PR_EXIST == 'false' run: | git config user.email "devopshelm@hazelcast.com" git config user.name "devOpsHelm" + git fetch origin + git checkout master + git pull origin master git checkout -b ${{ env.BRANCH }} git add . git commit --signoff -m "${{ env.TITLE }}" git push -u origin ${{ env.BRANCH }} - name: Create PR to Main Branch - if: (steps.update_version.outputs.HZ_UPDATED == 'true' || steps.update_version.outputs.MC_UPDATED == 'true') + if: (steps.update_version.outputs.HZ_UPDATED == 'true' || steps.update_version.outputs.MC_UPDATED == 'true') && steps.title.outputs.PR_EXIST == 'false' run: | echo ${{ env.DEVOPS_GITHUB_TOKEN }} | gh auth login --with-token gh pr create --fill \ diff --git a/stable/hazelcast-enterprise/Chart.yaml b/stable/hazelcast-enterprise/Chart.yaml index 2c5871a9..4d49be21 100644 --- a/stable/hazelcast-enterprise/Chart.yaml +++ b/stable/hazelcast-enterprise/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: hazelcast-enterprise -version: 5.12.0 -appVersion: "5.5.0" +version: 5.12.2 +appVersion: "5.5.1" kubeVersion: ">=1.19.0-0" description: Hazelcast is a streaming and memory-first application platform for fast, stateful, data-intensive workloads on-premises, at the edge or as a fully managed cloud service. keywords: diff --git a/stable/hazelcast-enterprise/values.yaml b/stable/hazelcast-enterprise/values.yaml index 273d1fe8..508b418e 100644 --- a/stable/hazelcast-enterprise/values.yaml +++ b/stable/hazelcast-enterprise/values.yaml @@ -5,7 +5,7 @@ image: # repository is the Hazelcast image name repository: "hazelcast/hazelcast-enterprise" # tag is the Hazelcast image tag - tag: "5.5.0" + tag: "5.5.1" # digest is the Hazelcast image digest that will be used only if the tag is empty digest: "" # @@ -346,7 +346,7 @@ mancenter: # repository is the Hazelcast Management Center image name repository: "hazelcast/management-center" # tag is the Hazelcast Management Center image tag - tag: "5.5.1" + tag: "5.5.2" # digest is the Hazelcast Management Center image digest that will be used only if the tag is empty digest: "" # diff --git a/stable/hazelcast/Chart.yaml b/stable/hazelcast/Chart.yaml index b49a8f7d..22808261 100644 --- a/stable/hazelcast/Chart.yaml +++ b/stable/hazelcast/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: hazelcast -version: 5.10.0 +version: 5.10.1 appVersion: "5.5.0" kubeVersion: ">=1.19.0-0" description: Hazelcast is a streaming and memory-first application platform for fast, stateful, data-intensive workloads on-premises, at the edge or as a fully managed cloud service. diff --git a/stable/hazelcast/values.yaml b/stable/hazelcast/values.yaml index 5fcc71d3..32150cba 100644 --- a/stable/hazelcast/values.yaml +++ b/stable/hazelcast/values.yaml @@ -309,7 +309,7 @@ mancenter: # repository is the Hazelcast Management Center image name repository: "hazelcast/management-center" # tag is the Hazelcast Management Center image tag - tag: "5.5.1" + tag: "5.5.2" # digest is the Hazelcast Management Center image digest that will be used only if the tag is empty digest: "" # pullPolicy is the Docker image pull policy