Skip to content

Commit

Permalink
fix: restore fortSphere reference
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Dec 25, 2024
1 parent c82c930 commit 0199053
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/sync_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
mkdir -p output
npm run db:export-checks
cp output/checks.json ../data/checks.json
npm run db:export-policies
cp output/policies.json ../data/policies.json
npm run db:export-checklists
cp output/checklists.json ../data/checklists.json
cd ..
Expand All @@ -69,7 +67,30 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add -A
git diff --cached --quiet || git commit -m "chore: sync with visionBoard checks, policies and checklists"
git diff --cached --quiet || git commit -m "chore: sync with visionBoard checks and checklists"
- name: Clone fortSphere and import policies
run: |
git clone https://github.com/OpenPathfinder/fortSphere.git temp-fortSphere
cd temp-fortSphere
npm install
mkdir -p output
npm run export-policies
cp output/policies.json ../data/policies.json
cd ..
rm -rf temp-fortSphere
- name: Debug Git Changes
run: |
git status
git diff
- name: Commit Updated Policies
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add -A
git diff --cached --quiet || git commit -m "chore: sync with fortSphere Policies"
- name: Install Dependencies and update dynamic content
run: |
Expand Down

0 comments on commit 0199053

Please sign in to comment.