ci: disable benchmark results comment if there's no diff (#8515)

This commit is contained in:
André Costa
2025-07-02 11:59:13 +02:00
committed by GitHub
parent 3d92fb7ae3
commit d135aed2dd
6 changed files with 39 additions and 10 deletions
@@ -116,6 +116,10 @@ jobs:
}
const commentBody = fs.readFileSync(commentPath, 'utf8').trim();
if (commentBody.length == 0) {
console.log("Not generating a comment as the comment body is empty");
process.exit(0);
}
const prNumber = Number(fs.readFileSync(prPath, 'utf8').trim());
github.rest.issues.createComment({