diff mbox series

[yocto-autobuilder-helper,v2,6/9] scripts/release-parser.py: use cloned yocto-docs from build directory

Message ID 20260123-releases-parser-updates-v2-6-c24c30da807b@bootlin.com
State New
Headers show
Series scripts/release-parser.py: update and move from poky | expand

Commit Message

Antonin Godard Jan. 23, 2026, 8:59 a.m. UTC
Add an argument to release-parser.py to pass the yocto-docs repository,
and pass it from run-dashboard-index.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 scripts/release-parser.py   | 4 +++-
 scripts/run-dashboard-index | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/release-parser.py b/scripts/release-parser.py
index 33c5fe7..cb56257 100755
--- a/scripts/release-parser.py
+++ b/scripts/release-parser.py
@@ -10,7 +10,9 @@  from collections import defaultdict
 import datetime
 import semver
 
-GIT_REPO = "~/git/mirror/yocto-docs"
+GIT_REPO = sys.argv[1]
+
+print(f"Reading tag information in {GIT_REPO}")
 
 SUPPORTED_RELEASES = {
      "yocto-4.0": "LTS until Apr. 2026",
diff --git a/scripts/run-dashboard-index b/scripts/run-dashboard-index
index 8c5222e..c3fb8fa 100755
--- a/scripts/run-dashboard-index
+++ b/scripts/run-dashboard-index
@@ -16,7 +16,7 @@  scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
 dest=${DEST:-docs@docs.yoctoproject.org:dashboard/}
 
 cd $builddir
-$scriptdir/release-parser.py 
+$scriptdir/release-parser.py $builddir/yocto-docs
 $scriptdir/layer-parser.py
 curl --silent --output $scriptdir/dashboard/testresults.json https://git.yoctoproject.org/yocto-testresults/plain/oeselftest/reproducible/qemux86-64/testresults.json