From 5ca7a1a01edf8019e84d5b2b2cb4673b2fb1a22f Mon Sep 17 00:00:00 2001 From: Timur Olzhabayev Date: Thu, 15 Jun 2023 15:36:26 +0200 Subject: [PATCH] Fix: Report breaking changes workflow error message (#70152) --- .github/workflows/scripts/json-file-to-job-output.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/json-file-to-job-output.js b/.github/workflows/scripts/json-file-to-job-output.js index f176f79aa5b..c71c1b86001 100644 --- a/.github/workflows/scripts/json-file-to-job-output.js +++ b/.github/workflows/scripts/json-file-to-job-output.js @@ -1,7 +1,7 @@ module.exports = async ({ core, filePath }) => { try { const fs = require('fs').promises; - const content = await fs.readFile(filepath) + const content = await fs.readFile(filePath) const result = JSON.parse(content); core.startGroup('Parsing json file...'); @@ -13,6 +13,6 @@ module.exports = async ({ core, filePath }) => { core.endGroup(); } catch (error) { - core.restFailed(error.message); + core.setFailed(error.message); } } \ No newline at end of file