ci/eval/compare: fix without owners

Even without relevant owners, the owners.txt file must be created,
otherwise the next job will fail.
This commit is contained in:
Wolfgang Walther
2025-11-02 17:30:46 +01:00
parent f0a359b2a3
commit c0b6cc9387

View File

@@ -230,6 +230,7 @@ runCommand "compare"
echo "This PR touches ''${#touchedFiles[@]} files" echo "This PR touches ''${#touchedFiles[@]} files"
# TODO: Move ci/OWNERS to Nix and produce owners.json instead of owners.txt. # TODO: Move ci/OWNERS to Nix and produce owners.json instead of owners.txt.
touch "$out/owners.txt"
for file in "''${touchedFiles[@]}"; do for file in "''${touchedFiles[@]}"; do
result=$(codeowners --file "${ownersFile}" "$file") result=$(codeowners --file "${ownersFile}" "$file")