From 71aaf34f0e4d0c4c49eb282332cb195c8fe075c0 Mon Sep 17 00:00:00 2001 From: Ulises Gascon Date: Sat, 7 Dec 2024 23:58:00 +0100 Subject: [PATCH] fix: use script to pull the compliance checks from the table --- .github/workflows/sync_checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync_checks.yml b/.github/workflows/sync_checks.yml index ec274b2..6b1bb3f 100644 --- a/.github/workflows/sync_checks.yml +++ b/.github/workflows/sync_checks.yml @@ -44,7 +44,9 @@ jobs: cd temp-openjs-dashboard npm install npm run db:migrate - psql -U openjs -d dashboard -c "\copy (SELECT json_agg(t) FROM compliance_checks t) TO '../data/checks.json'" + npm run db:export-checks + mkdir -p output + cp output/checks.json ../data/checks.json cd .. rm -rf temp-openjs-dashboard env: