From 4f2273c116d9ffb024770ff79916cea732ab7cd0 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Thu, 22 Aug 2024 06:55:35 +0000 Subject: [PATCH] ci: web: rules: deep checkout so we can get rule history --- .github/workflows/web-deploy.yml | 1 - web/rules/scripts/build_rules.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 76bd6b011..7aa758cae 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -74,7 +74,6 @@ jobs: uses: actions/checkout@v4 with: submodules: 'recursive' - fetch-depth: 1 - name: Set up Python uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: diff --git a/web/rules/scripts/build_rules.py b/web/rules/scripts/build_rules.py index 25a7d2776..cff0fd9f5 100644 --- a/web/rules/scripts/build_rules.py +++ b/web/rules/scripts/build_rules.py @@ -146,7 +146,8 @@ def convert_yaml_to_html(timestamps, yaml_file: Path, output_dir: Path): if not line: continue if line.startswith("==="): - continue + continue + path, _, timestamp = line.partition(" ") timestamps[path] = timestamp