Skip to content

Commit

Permalink
Merge pull request #184 from LerianStudio/feature/MZ-617
Browse files Browse the repository at this point in the history
Feature/MZ-617
  • Loading branch information
MartinezAvellan authored Nov 1, 2024
2 parents 32a00b1 + 2c64b8b commit 1947f97
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/update-midaz-full-submodule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Update Submodule midaz in midaz-full
on:
push:
branches:
- main

jobs:
update-submodule:
runs-on: ubuntu-latest

steps:
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
gpg_private_key: ${{ secrets.LERIAN_CI_CD_USER_GPG_KEY }}
passphrase: ${{ secrets.LERIAN_CI_CD_USER_GPG_KEY_PASSWORD }}
git_committer_name: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
git_committer_email: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true

- name: Pull midaz-full and submodules
uses: actions/checkout@v4
with:
repository: LerianStudio/midaz-full
ref: main
path: midaz-full
submodules: recursive
token: ${{ secrets.MANAGE_TOKEN }}

- name: Push midaz-full and midaz submodule
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.MANAGE_TOKEN }}
GIT_AUTHOR_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}
run: |
cd midaz-full
cd midaz
git checkout main
git pull origin main
cd ..
git add midaz
git commit -S -m "Updating the submodule 'midaz' to the latest version"
git push origin main

0 comments on commit 1947f97

Please sign in to comment.