From cf01f1b1a5317cf56deb8219f3fc120f2664aa0c Mon Sep 17 00:00:00 2001 From: derberg Date: Thu, 24 Nov 2022 17:12:48 +0100 Subject: [PATCH 1/5] ci: improve logging for tools build script --- .github/workflows/regenerate-tools.yml | 2 +- scripts/tools/tools-object.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/regenerate-tools.yml b/.github/workflows/regenerate-tools.yml index 98f06544a87..5f2eabc0be9 100644 --- a/.github/workflows/regenerate-tools.yml +++ b/.github/workflows/regenerate-tools.yml @@ -7,7 +7,7 @@ on: - cron: "15 0 * * 1" jobs: - meetings: + regenerateTools: if: github.repository == 'asyncapi/website' env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/scripts/tools/tools-object.js b/scripts/tools/tools-object.js index 95c6939ceef..b7be3b7a557 100644 --- a/scripts/tools/tools-object.js +++ b/scripts/tools/tools-object.js @@ -65,8 +65,9 @@ async function convertTools(data) { } }); } else { - console.log("Repository: " + tool.repository.html_url) - console.log("Error: " + validate.errors) + console.log('Invalid .asyncapi-tool file.') + console.log(`Located in: ${tool.repository.html_url}`) + console.log('Validation errors:', JSON.stringify(validate.errors, null, 2)) } } } From c1b3adb1d6a5279f754f032df6a31369c62f746f Mon Sep 17 00:00:00 2001 From: derberg Date: Thu, 24 Nov 2022 17:14:56 +0100 Subject: [PATCH 2/5] Update tools-object.js --- scripts/tools/tools-object.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/tools/tools-object.js b/scripts/tools/tools-object.js index b7be3b7a557..f90bbcfa1b2 100644 --- a/scripts/tools/tools-object.js +++ b/scripts/tools/tools-object.js @@ -65,9 +65,10 @@ async function convertTools(data) { } }); } else { - console.log('Invalid .asyncapi-tool file.') - console.log(`Located in: ${tool.repository.html_url}`) - console.log('Validation errors:', JSON.stringify(validate.errors, null, 2)) + console.log('Invalid .asyncapi-tool file.'); + console.log(`Located in: ${tool.repository.html_url}`); + console.log('Validation errors:', JSON.stringify(validate.errors, null, 2)); + console.log('Not failing, dropping errors for further investigation'); } } } From 885854798a321c43f3277fa452f68d4895a56c96 Mon Sep 17 00:00:00 2001 From: akshatnema <20bcs022@iiitdmj.ac.in> Date: Sat, 26 Nov 2022 23:32:18 +0530 Subject: [PATCH 3/5] updated file --- scripts/tools/tools-object.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/tools/tools-object.js b/scripts/tools/tools-object.js index f90bbcfa1b2..55c378f83b5 100644 --- a/scripts/tools/tools-object.js +++ b/scripts/tools/tools-object.js @@ -65,10 +65,10 @@ async function convertTools(data) { } }); } else { - console.log('Invalid .asyncapi-tool file.'); - console.log(`Located in: ${tool.repository.html_url}`); - console.log('Validation errors:', JSON.stringify(validate.errors, null, 2)); - console.log('Not failing, dropping errors for further investigation'); + console.error('Invalid .asyncapi-tool file.'); + console.error(`Located in: ${tool.html_url}`); + console.error('Validation errors:', JSON.stringify(validate.errors, null, 2)); + console.error('Not failing, dropping errors for further investigation'); } } } From 53727051e62907825f407c40591711af22fa2b11 Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Tue, 29 Nov 2022 12:07:29 +0100 Subject: [PATCH 4/5] Update scripts/tools/tools-object.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Maciej UrbaƄczyk --- scripts/tools/tools-object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tools/tools-object.js b/scripts/tools/tools-object.js index 55c378f83b5..1fb1e6cb698 100644 --- a/scripts/tools/tools-object.js +++ b/scripts/tools/tools-object.js @@ -66,7 +66,7 @@ async function convertTools(data) { }); } else { console.error('Invalid .asyncapi-tool file.'); - console.error(`Located in: ${tool.html_url}`); + console.error(`Located in: ${tool.repository.html_url}`); console.error('Validation errors:', JSON.stringify(validate.errors, null, 2)); console.error('Not failing, dropping errors for further investigation'); } From 36143b294b26b5024da5e57c8edfa07147c4204b Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Wed, 30 Nov 2022 15:10:11 +0100 Subject: [PATCH 5/5] Update tools-object.js --- scripts/tools/tools-object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tools/tools-object.js b/scripts/tools/tools-object.js index 1fb1e6cb698..55c378f83b5 100644 --- a/scripts/tools/tools-object.js +++ b/scripts/tools/tools-object.js @@ -66,7 +66,7 @@ async function convertTools(data) { }); } else { console.error('Invalid .asyncapi-tool file.'); - console.error(`Located in: ${tool.repository.html_url}`); + console.error(`Located in: ${tool.html_url}`); console.error('Validation errors:', JSON.stringify(validate.errors, null, 2)); console.error('Not failing, dropping errors for further investigation'); }