-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/github_actions/helm/kind-action…
…-1.10.0
- Loading branch information
Showing
5 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
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 \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters