From 5952990249d5a46a4e46ab53d8a0dea6050a9065 Mon Sep 17 00:00:00 2001 From: drkameleon Date: Tue, 7 Nov 2023 16:29:33 +0100 Subject: [PATCH] let's make it work as it should - and fingers crossed! lol --- tools/ci.art | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/tools/ci.art b/tools/ci.art index 790009fd..8f58f42d 100644 --- a/tools/ci.art +++ b/tools/ci.art @@ -1,6 +1,26 @@ -inspect # "packages/list.art" +packages: # "packages/list.art" do relative "getrepodetails.art" do :: IsCI?: true - getGH "repos/arturo-lang/dummy-package" \ No newline at end of file + cnt: 1 + total: size packages + + hasError?: false + + loop packages [name,location][ + prints ["[" cnt "/" total "]"] + prints color #cyan "- Processing: " + prints pad.right 20 + + [owner,repo]: split.by:"," location + + (data: <= getRepoInfo owner repo)? -> print color.green "[ OK ]" + [ + print color.red "[ ERROR ]" + hasError?: true + ] + ] + + if hasError? -> + panic.code:1 "Something went wrong. Let's stop here." \ No newline at end of file