Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit f9e6ece

Browse files
committed
fix: use script to pull the compliance checks from the table
1 parent b216d3c commit f9e6ece

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/sync_checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
cd temp-openjs-dashboard
4545
npm install
4646
npm run db:migrate
47-
psql -U openjs -d dashboard -c "\copy (SELECT json_agg(t) FROM compliance_checks t) TO '../data/checks.json'"
47+
mkdir -p output
48+
npm run db:export-checks
49+
cp output/checks.json ../data/checks.json
4850
cd ..
4951
rm -rf temp-openjs-dashboard
5052
env:

0 commit comments

Comments
 (0)