Skip to content

Commit

Permalink
Add git submodule update to additional steps (#470)
Browse files Browse the repository at this point in the history
* Add git submodule update to additional steps

* Add git submodule update to additional steps
  • Loading branch information
naresh-kumar-babu authored Dec 24, 2024
1 parent 461da5d commit c5910e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _sources/configs/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ extensions:
- composer update
- EmailAuthorization:
commit: 2016da1b354f741d89b5dc207d4a84e11ffe9bce
additional steps:
- git submodule update
- EmbedVideo:
repository: https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo.git
commit: 5c03c031070981730a0e01aa3cbc3e5cbd1b88c1
Expand Down
7 changes: 5 additions & 2 deletions _sources/scripts/extensions-skins.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@
}

if ($additionalSteps !== null) {
foreach ($steps as $additionalSteps) {
if ($steps === "composer update") {
foreach ($additionalSteps as $step) {
if ($step === "composer update") {
$composerUpdateCmd = "cd $MW_HOME/$type/$name && composer update --no-dev";
exec($composerUpdateCmd);
} elseif ($step === "git submodule update") {
$submoduleUpdateCmd = "cd $MW_HOME/$type/$name && git submodule update --init";
exec($submoduleUpdateCmd);
}
}
}
Expand Down

0 comments on commit c5910e4

Please sign in to comment.