fix: repair bulk sync — array assignment bug + add missing workflow mappings
- Line 876: change $entries = to $entries[] = (was overwriting all shared workflow entries, causing every repo to be skipped with empty result) - Add deploy-rs, export-mysql, pull-from-dev to shared workflows (all platforms) - Add deploy-dev, deploy-demo, deploy.yml to waas-component platform - This fix restores the bulk-repo-sync ability to push workflow templates Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -816,6 +816,9 @@ HCL;
|
||||
['templates/workflows/shared/branch-freeze.yml.template', "{$wfDir}/branch-freeze.yml"],
|
||||
['templates/workflows/shared/auto-assign.yml.template', "{$wfDir}/auto-assign.yml"],
|
||||
['templates/workflows/shared/changelog-validation.yml.template', "{$wfDir}/changelog-validation.yml"],
|
||||
['templates/workflows/shared/deploy-rs.yml.template', "{$wfDir}/deploy-rs.yml"],
|
||||
['templates/workflows/shared/export-mysql.yml.template', "{$wfDir}/export-mysql.yml"],
|
||||
['templates/workflows/shared/pull-from-dev.yml.template', "{$wfDir}/pull-from-dev.yml"],
|
||||
['.github/workflows/standards-compliance.yml', "{$wfDir}/standards-compliance.yml"],
|
||||
];
|
||||
|
||||
@@ -838,11 +841,14 @@ HCL;
|
||||
$shared[] = ['templates/workflows/dolibarr/auto-release.yml.template', "{$wfDir}/auto-release.yml"];
|
||||
$shared[] = ['templates/workflows/dolibarr/ci-dolibarr.yml.template', "{$wfDir}/ci-dolibarr.yml"];
|
||||
} elseif ($platform === 'waas-component' || $platform === 'joomla-template') {
|
||||
$shared[] = ['templates/workflows/shared/deploy-dev.yml.template', "{$wfDir}/deploy-dev.yml"];
|
||||
$shared[] = ['templates/workflows/shared/deploy-demo.yml.template', "{$wfDir}/deploy-demo.yml"];
|
||||
$shared[] = ['templates/workflows/joomla/auto-release.yml.template', "{$wfDir}/auto-release.yml"];
|
||||
$shared[] = ['templates/workflows/joomla/update-server.yml.template', "{$wfDir}/update-server.yml"];
|
||||
$shared[] = ['templates/workflows/joomla/ci-joomla.yml.template', "{$wfDir}/ci-joomla.yml"];
|
||||
$shared[] = ['templates/workflows/joomla/repo_health.yml.template', "{$wfDir}/repo_health.yml"];
|
||||
$shared[] = ['templates/workflows/joomla/deploy-manual.yml.template', "{$wfDir}/deploy-manual.yml"];
|
||||
$shared[] = ['templates/workflows/joomla/deploy.yml.template', "{$wfDir}/deploy.yml"];
|
||||
} else {
|
||||
$shared[] = ['templates/workflows/shared/deploy-dev.yml.template', "{$wfDir}/deploy-dev.yml"];
|
||||
$shared[] = ['templates/workflows/shared/deploy-demo.yml.template', "{$wfDir}/deploy-demo.yml"];
|
||||
@@ -873,8 +879,7 @@ HCL;
|
||||
|
||||
// Always create a custom/ subdirectory under the workflow dir with a README
|
||||
// so repos have a safe place for custom workflows that sync won't touch.
|
||||
$entries = [
|
||||
[
|
||||
$entries[] = [
|
||||
'inline_content' => "# Custom Workflows\n\nPlace repo-specific workflows here.\n\n"
|
||||
. "- **Never overwritten** by MokoStandards bulk sync\n"
|
||||
. "- **Never deleted** by the repository-cleanup workflow\n"
|
||||
@@ -882,7 +887,6 @@ HCL;
|
||||
. "Synced workflows live in the parent `{$wfDir}/` directory.\n",
|
||||
'destination' => "{$wfDir}/custom/README.md",
|
||||
'always_overwrite' => false,
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($shared as [$source, $dest]) {
|
||||
|
||||
Reference in New Issue
Block a user