Use fetched sources for currency checks
All checks were successful
Build and publish policy-nexus image / build-and-push (push) Successful in 43s
All checks were successful
Build and publish policy-nexus image / build-and-push (push) Successful in 43s
This commit is contained in:
parent
e7b26ff158
commit
e737b74688
2 changed files with 19 additions and 12 deletions
|
|
@ -5,7 +5,7 @@ import argparse
|
|||
import datetime as dt
|
||||
from pathlib import Path
|
||||
|
||||
from build_site import _add_interval, load_manifest
|
||||
from build_site import _add_interval, load_manifest, repository_paths
|
||||
from render import split_frontmatter
|
||||
|
||||
|
||||
|
|
@ -16,9 +16,10 @@ def main() -> int:
|
|||
args = parser.parse_args()
|
||||
manifest_path = args.manifest.resolve()
|
||||
manifest = load_manifest(manifest_path)
|
||||
repositories = repository_paths(manifest_path, manifest)
|
||||
stale = 0
|
||||
for document in manifest["documents"]:
|
||||
repo = manifest_path.parent / manifest["repositories"][document["source_repo"]]["path"]
|
||||
repo = repositories[document["source_repo"]]
|
||||
source = (repo / document["source_path"]).resolve()
|
||||
meta, _markdown = split_frontmatter(source.read_text(encoding="utf-8"))
|
||||
reviewed = meta.get("last_reviewed") or meta.get("updated")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue