Skip to content

Commit 0199053

Browse files
committed
fix: restore fortSphere reference
1 parent c82c930 commit 0199053

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/sync_data.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
mkdir -p output
4848
npm run db:export-checks
4949
cp output/checks.json ../data/checks.json
50-
npm run db:export-policies
51-
cp output/policies.json ../data/policies.json
5250
npm run db:export-checklists
5351
cp output/checklists.json ../data/checklists.json
5452
cd ..
@@ -69,7 +67,30 @@ jobs:
6967
git config user.name "GitHub Actions"
7068
git config user.email "[email protected]"
7169
git add -A
72-
git diff --cached --quiet || git commit -m "chore: sync with visionBoard checks, policies and checklists"
70+
git diff --cached --quiet || git commit -m "chore: sync with visionBoard checks and checklists"
71+
72+
- name: Clone fortSphere and import policies
73+
run: |
74+
git clone https://github.com/OpenPathfinder/fortSphere.git temp-fortSphere
75+
cd temp-fortSphere
76+
npm install
77+
mkdir -p output
78+
npm run export-policies
79+
cp output/policies.json ../data/policies.json
80+
cd ..
81+
rm -rf temp-fortSphere
82+
83+
- name: Debug Git Changes
84+
run: |
85+
git status
86+
git diff
87+
88+
- name: Commit Updated Policies
89+
run: |
90+
git config user.name "GitHub Actions"
91+
git config user.email "[email protected]"
92+
git add -A
93+
git diff --cached --quiet || git commit -m "chore: sync with fortSphere Policies"
7394
7495
- name: Install Dependencies and update dynamic content
7596
run: |

0 commit comments

Comments
 (0)