Skip to content

Commit 6433608

Browse files
authored
Merge pull request #916 from LerianStudio/main
chore: backmerge from main to develop
2 parents d122fc1 + 6d8d823 commit 6433608

4 files changed

Lines changed: 75 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,72 @@ jobs:
222222
secrets:
223223
SLACK_BOT_TOKEN_HELM: ${{ secrets.SLACK_BOT_TOKEN_HELM }}
224224
SLACK_CHANNEL_DEVOPS: ${{ secrets.SLACK_CHANNEL_DEVOPS }}
225-
SLACK_GROUP_TECH_SUPPORT: ${{ secrets.SLACK_GROUP_TECH_SUPPORT }}
225+
SLACK_GROUP_TECH_SUPPORT: ${{ secrets.SLACK_GROUP_TECH_SUPPORT }}
226+
227+
back-merge:
228+
needs:
229+
- get-changed-paths
230+
- release-helm-chart
231+
name: 🔀 Back Merge to Develop
232+
if: needs.get-changed-paths.outputs.matrix != '[]' && github.ref == 'refs/heads/main'
233+
runs-on: ubuntu-latest
234+
steps:
235+
- name: Generate GitHub App Token
236+
id: app-token
237+
uses: actions/create-github-app-token@v1
238+
with:
239+
app-id: ${{ secrets.LERIAN_STUDIO_MIDAZ_PUSH_BOT_APP_ID }}
240+
private-key: ${{ secrets.LERIAN_STUDIO_MIDAZ_PUSH_BOT_PRIVATE_KEY }}
241+
242+
- name: Checkout code
243+
uses: actions/checkout@v4
244+
with:
245+
fetch-depth: 0
246+
token: ${{ steps.app-token.outputs.token }}
247+
248+
- name: Import GPG key
249+
uses: crazy-max/ghaction-import-gpg@v6
250+
with:
251+
gpg_private_key: ${{ secrets.LERIAN_CI_CD_USER_GPG_KEY }}
252+
passphrase: ${{ secrets.LERIAN_CI_CD_USER_GPG_KEY_PASSWORD }}
253+
git_committer_name: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
254+
git_committer_email: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}
255+
git_config_global: true
256+
git_user_signingkey: true
257+
git_commit_gpgsign: true
258+
259+
- name: Create Pull Request for Back Merge
260+
env:
261+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
262+
GIT_AUTHOR_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
263+
GIT_AUTHOR_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}
264+
GIT_COMMITTER_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
265+
GIT_COMMITTER_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}
266+
run: |
267+
git fetch origin main develop
268+
269+
# Check if there are differences between main and develop
270+
if git diff --quiet origin/main origin/develop; then
271+
echo "No differences between main and develop. Skipping PR creation."
272+
exit 0
273+
fi
274+
275+
# Check if a back-merge PR already exists
276+
EXISTING_PR=$(gh pr list --base develop --head main --state open --json number --jq '.[0].number')
277+
278+
if [ -n "$EXISTING_PR" ]; then
279+
echo "Back-merge PR #$EXISTING_PR already exists. Skipping PR creation."
280+
exit 0
281+
fi
282+
283+
# Create the back-merge PR
284+
gh pr create \
285+
--base develop \
286+
--head main \
287+
--title "chore: back merge main into develop" \
288+
--body "## Back Merge
289+
290+
This PR merges the latest changes from \`main\` back into \`develop\` to keep the branches in sync after a release.
291+
292+
### Auto-generated
293+
This PR was automatically created by the release pipeline."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
| Chart Version | Console Version | Onboarding Version | Transaction Version |
1818
| :---: | :---: | :---: | :---: |
19-
| `4.4.8` | `3.4.6` | `3.4.4` | `3.4.7` |
19+
| `4.5.0` | 3.4.8 | 3.4.8 | 3.4.8 |
2020
-----------------
2121

2222
### Plugin Access Manager Helm Chart

charts/midaz/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ maintainers:
1717
# This is the chart version. This version number should be incremented each time you make changes
1818
# to the chart and its templates, including the app version.
1919

20-
version: 4.4.8
20+
version: 4.5.0
2121

2222
# This is the version number of the application being deployed.
23-
appVersion: "3.4.7"
23+
appVersion: "3.4.8"
2424

2525
# A list of keywords about the chart. This helps others discover the chart.
2626
keywords:

charts/midaz/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ console:
4343
# -- Image pull policy
4444
pullPolicy: IfNotPresent
4545
# -- Image tag used for deployment
46-
tag: "3.4.6"
46+
tag: "3.4.8"
4747

4848
# -- Secrets for pulling images from a private registry
4949
imagePullSecrets: []
@@ -237,7 +237,7 @@ onboarding:
237237
# -- Image pull policy
238238
pullPolicy: IfNotPresent
239239
# -- Image tag used for deployment
240-
tag: "3.4.4"
240+
tag: "3.4.8"
241241

242242
# -- Secrets for pulling images from a private registry
243243
imagePullSecrets: []
@@ -437,7 +437,7 @@ transaction:
437437
# -- Image pull policy
438438
pullPolicy: IfNotPresent
439439
# -- Image tag used for deployment
440-
tag: "3.4.7"
440+
tag: "3.4.8"
441441

442442
# -- Secrets for pulling images from a private registry
443443
imagePullSecrets: []

0 commit comments

Comments
 (0)