diff --git a/.github/buildConfiguration.yaml b/.github/buildConfiguration.yaml index 078aba129f..014a5d273b 100644 --- a/.github/buildConfiguration.yaml +++ b/.github/buildConfiguration.yaml @@ -32,3 +32,10 @@ customBuilds: triggers: - type: cron schedule: '@midnight' + + - name: Update Submodule + jobName: updateSubmoduleJob + scriptPath: .github/jenkinsfile/updateSubmodule.groovy + triggers: + - type: cron + schedule: H H(3-7) * * 2 diff --git a/.github/jenkinsfile/updateSubmodule.groovy b/.github/jenkinsfile/updateSubmodule.groovy new file mode 100644 index 0000000000..0335c7197b --- /dev/null +++ b/.github/jenkinsfile/updateSubmodule.groovy @@ -0,0 +1,7 @@ +gitPullRequestPipeline { + dockerImageName = 'symbolplatform/build-ci:cpp-ubuntu-lts' + prBranchName = 'fix/update_submodule' + scriptSetupCommand = 'bash init.sh' + scriptCommand = 'git submodule update --remote; git add .; git commit -m "[monorepo] fix: update submodule"' + reviewers = [] +}