From 93fd9d4bae4546b738d9ce2c8ff3277fe9d03574 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Tue, 10 Feb 2026 21:50:38 -0800 Subject: [PATCH] ci: fix empty file error in docs link check PR comment The sticky-pull-request-comment action requires a non-empty file when using the path input. When the filtered link checker finds no broken links in changed files, it produces an empty file causing the action to fail with "Either message or path input is required". Ensure the results file always has content by writing a fallback message when the file is missing or empty. Signed-off-by: Ramon Roche --- .github/workflows/docs-orchestrator.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-orchestrator.yml b/.github/workflows/docs-orchestrator.yml index 2b50fa8027..d480b6ade9 100644 --- a/.github/workflows/docs-orchestrator.yml +++ b/.github/workflows/docs-orchestrator.yml @@ -256,8 +256,9 @@ jobs: -i assets \ -u docs.px4.io/main/ \ > ./logs/filtered-link-check-results.md || true - else - echo "No changed doc files found" > ./logs/filtered-link-check-results.md + fi + if [ ! -s ./logs/filtered-link-check-results.md ]; then + echo "No broken links found in changed files." > ./logs/filtered-link-check-results.md fi cat ./logs/filtered-link-check-results.md