ci: add a script to copy cdk api files to adev (#61081)

Refactors the update-cli-help script into a generic script to copy json
assets, and uses the shared code to also copy the CDK apis

PR Close #61081
This commit is contained in:
Miles Malerba
2025-04-30 23:12:06 +00:00
committed by Andrew Kushnir
parent 88858118ea
commit 8828a84ecf
10 changed files with 271 additions and 147 deletions
+4
View File
@@ -0,0 +1,4 @@
{
"branchName": "refs/heads/main",
"sha": "9500b84652d34db69e545a1b24b2728ea86f0328"
}
+1 -1
View File
@@ -9,6 +9,6 @@ filegroup(
],
) + [
"//adev/src/content/cli/help",
"//adev/src/content/cli/help:build-info.json",
"//adev/src/content/cli/help:_build-info.json",
],
)
+4 -5
View File
@@ -2,16 +2,15 @@ load("//adev/shared-docs/pipeline/api-gen/rendering:render_api_to_html.bzl", "re
package(default_visibility = ["//visibility:public"])
exports_files(["build-info.json"])
exports_files(["_build-info.json"])
filegroup(
name = "help",
srcs = glob(
["*"],
["*.json"],
exclude = [
# Exlucde build-info.json as it is not a help entry.
"build-info.json",
"BUILD.bazel",
# Exlucde _build-info.json as it is not a help entry.
"_*.json",
],
),
)