Update repo_health.yml
This commit is contained in:
28
.github/workflows/repo_health.yml
vendored
28
.github/workflows/repo_health.yml
vendored
@@ -318,17 +318,17 @@ jobs:
|
|||||||
export TOOLS="${tool_status[*]:-}"
|
export TOOLS="${tool_status[*]:-}"
|
||||||
|
|
||||||
report_json="$(python3 - <<'PY'
|
report_json="$(python3 - <<'PY'
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
profile = os.environ.get('PROFILE_RAW') or 'all'
|
profile = os.environ.get('PROFILE_RAW') or 'all'
|
||||||
required_script_dirs = [
|
required_script_dirs = [
|
||||||
"scripts/fix",
|
"scripts/fix",
|
||||||
"scripts/lib",
|
"scripts/lib",
|
||||||
"scripts/release",
|
"scripts/release",
|
||||||
"scripts/run",
|
"scripts/run",
|
||||||
"scripts/validate",
|
"scripts/validate",
|
||||||
]
|
]
|
||||||
required_script_files = [
|
required_script_files = [
|
||||||
"scripts/validate/manifest.sh",
|
"scripts/validate/manifest.sh",
|
||||||
"scripts/validate/xml_wellformed.sh",
|
"scripts/validate/xml_wellformed.sh",
|
||||||
"scripts/validate/changelog.sh",
|
"scripts/validate/changelog.sh",
|
||||||
@@ -339,11 +339,11 @@ required_script_files = [
|
|||||||
"scripts/validate/php_syntax.sh",
|
"scripts/validate/php_syntax.sh",
|
||||||
"scripts/validate/no_secrets.sh",
|
"scripts/validate/no_secrets.sh",
|
||||||
"scripts/validate/license_headers.sh",
|
"scripts/validate/license_headers.sh",
|
||||||
]
|
]
|
||||||
missing_dirs = os.environ.get('MISSING_DIRS','').split('\n') if os.environ.get('MISSING_DIRS') else []
|
missing_dirs = os.environ.get('MISSING_DIRS','').split('\n') if os.environ.get('MISSING_DIRS') else []
|
||||||
missing_files = os.environ.get('MISSING_FILES','').split('\n') if os.environ.get('MISSING_FILES') else []
|
missing_files = os.environ.get('MISSING_FILES','').split('\n') if os.environ.get('MISSING_FILES') else []
|
||||||
tools = os.environ.get('TOOLS','').split() if os.environ.get('TOOLS') else []
|
tools = os.environ.get('TOOLS','').split() if os.environ.get('TOOLS') else []
|
||||||
out = {
|
out = {
|
||||||
"profile": profile,
|
"profile": profile,
|
||||||
"checked": {
|
"checked": {
|
||||||
"required_script_dirs": required_script_dirs,
|
"required_script_dirs": required_script_dirs,
|
||||||
@@ -352,9 +352,9 @@ out = {
|
|||||||
"missing_dirs": [x for x in missing_dirs if x],
|
"missing_dirs": [x for x in missing_dirs if x],
|
||||||
"missing_files": [x for x in missing_files if x],
|
"missing_files": [x for x in missing_files if x],
|
||||||
"tools_available": tools,
|
"tools_available": tools,
|
||||||
}
|
}
|
||||||
print(json.dumps(out, indent=2))
|
print(json.dumps(out, indent=2))
|
||||||
PY
|
PY
|
||||||
)"
|
)"
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user