Check out only governance repositories for release reconciliation

This commit is contained in:
cflmy committed 2026-11-27 22:31:32 +08:00
1 parent a8a8098b9a
commit b47cf440b7
2 files changed
+9 -3

No files matched your search

+7 -2
View File
@@ -16,6 +16,11 @@ steps:
MARQDO_GIT_TOKEN:
from_secret: gitea_reconcile_token
commands:
- python3 scripts/check-layout.py
- git submodule update --init
- |
set -eu
domains="$(python3 scripts/check-layout.py --root-domain-paths)"
for domain in $domains; do
git submodule update --init -- "$domain"
done
- python3 scripts/check-layout.py --domain-paths
- python3 scripts/reconcile-releases.py --apply --published-after 2026-11-27T02:00:00Z --report-out reconcile-report.json
+2 -1
View File
@@ -452,6 +452,7 @@ def main():
paths.add_argument("--active-paths", action="store_true", help="print only direct active component paths")
paths.add_argument("--active-entries", action="store_true", help="print validated active entries in dependency order")
paths.add_argument("--domain-paths", action="store_true", help="validate domain URLs and print domain paths")
paths.add_argument("--root-domain-paths", action="store_true", help="print root domain gitlinks before checkout")
args = parser.parse_args()
try:
revision = git("rev-parse", "--verify", args.revision + "^{commit}").strip()
@@ -463,7 +464,7 @@ def main():
for path, component in sorted(layers[0].linked.items()):
if component["state"] == "active":
print(path)
elif args.domain_paths:
elif args.domain_paths or args.root_domain_paths:
for path, component in sorted(layers[0].linked.items()):
if component["kind"] == "domain":
print(path)