Public Access
b038a49279
Generic: Project CI / Tests (push) Blocked by required conditions
Platform: mokoplatform CI / Gate 2: Unit Tests (8.1) (push) Blocked by required conditions
Platform: mokoplatform CI / Gate 2: Unit Tests (8.2) (push) Blocked by required conditions
Platform: mokoplatform CI / Gate 2: Unit Tests (8.3) (push) Blocked by required conditions
Platform: mokoplatform CI / Gate 3: Self-Health Check (push) Blocked by required conditions
Platform: mokoplatform CI / Gate 4: Governance (push) Blocked by required conditions
Platform: mokoplatform CI / Gate 5: Template Integrity (push) Blocked by required conditions
Platform: mokoplatform CI / CI Summary (push) Blocked by required conditions
Generic: Repo Health / Scripts governance (push) Blocked by required conditions
Generic: Repo Health / Repository health (push) Blocked by required conditions
Generic: Repo Health / Report Issues (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Generic: Project CI / Lint & Validate (push) Failing after 25s
Platform: mokoplatform CI / Gate 1: Code Quality (push) Failing after 38s
43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/* Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* FILE INFORMATION
|
|
* DEFGROUP: moko-platform.CLI
|
|
* INGROUP: moko-platform
|
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform
|
|
* PATH: /cli/workflow_sync.php
|
|
* VERSION: 09.30.00
|
|
* BRIEF: Sync workflows from Generic → platform templates → live repos based on manifest.platform
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
require_once __DIR__ . '/../lib/Enterprise/CliFramework.php';
|
|
|
|
use MokoEnterprise\CliFramework;
|
|
|
|
class WorkflowSyncCli extends CliFramework
|
|
{
|
|
private const PLATFORM_TEMPLATES = [
|
|
'joomla' => 'Template-Joomla',
|
|
'dolibarr' => 'Template-Dolibarr',
|
|
'go' => 'Template-Go',
|
|
'mcp' => 'Template-MCP',
|
|
'platform' => 'Template-Generic',
|
|
'generic' => 'Template-Generic',
|
|
];
|
|
|
|
private const DEFAULT_TEMPLATE = 'Template-Generic';
|
|
private const GENERIC_TEMPLATE = 'Template-Generic';
|
|
|
|
/**
|
|
* Workflows to exclude per platform during sync.
|
|
* Key = platform name (matching PLATFORM_TEMPLATES keys), Value = array of workflow filenames to skip.
|
|
*/
|
|
private const PLATFORM_EXCLUDES = [
|
|
'joomla' => ['deploy-manual.yml'],
|
|
]; |