yewint commited on
Commit
53408d7
·
unverified ·
1 Parent(s): ce8a64c

Update and rename main.yml to manual_sync_debug.yml

Browse files
.github/workflows/{main.yml → manual_sync_debug.yml} RENAMED
@@ -1,33 +1,27 @@
1
- name: Evolution Engine
2
 
3
  on:
4
- schedule:
5
- - cron: '*/15 * * * *'
6
- workflow_dispatch:
7
 
8
  jobs:
9
- evolve:
10
  runs-on: ubuntu-latest
11
  steps:
12
  - name: Checkout Code
13
  uses: actions/checkout@v3
14
 
15
- - name: Set up Python
16
- uses: actions/setup-python@v4
17
  with:
18
- python-version: '3.9'
19
 
20
  - name: Install Dependencies
21
- run: |
22
- python -m pip install --upgrade pip
23
- pip install psycopg2-binary requests groq
24
 
25
- - name: Run Engine
26
  env:
27
- # 🔱 ဒီနေရာမှာ မင်းရဲ့ Secret Name ၄ ခုလုံးကို Match ဖြစ်အောင် ဇွတ်ချိတ်ထားတယ်
28
  NEON_KEY: ${{ secrets.NEON_KEY }}
29
- GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
30
- FIREBASE_KEY: ${{ secrets.FIREBASE_KEY }}
31
  SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
32
- run: python evolve.py
33
-
 
1
+ name: Manual Trinity Debugger
2
 
3
  on:
4
+ workflow_dispatch: # Schedule မပါဘူး၊ မင်းခလုတ်နှိပ်မှပဲ Run မယ်
 
 
5
 
6
  jobs:
7
+ debug_sync:
8
  runs-on: ubuntu-latest
9
  steps:
10
  - name: Checkout Code
11
  uses: actions/checkout@v3
12
 
13
+ - name: Setup Node.js
14
+ uses: actions/setup-node@v3
15
  with:
16
+ node-version: '18'
17
 
18
  - name: Install Dependencies
19
+ run: npm install pg @supabase/supabase-js firebase-admin
 
 
20
 
21
+ - name: Force Sync Neon to Supabase
22
  env:
 
23
  NEON_KEY: ${{ secrets.NEON_KEY }}
24
+ SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
 
25
  SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
26
+ FIREBASE_KEY: ${{ secrets.FIREBASE_KEY }}
27
+ run: node delta_sync.js