Skip to content

Commit

Permalink
Add weekly sync workflow for database synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
britzdylan committed Mar 18, 2024
1 parent 9937d06 commit 2f78b21
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/weekly-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Weekly Sync DB

on:
schedule:
- cron: '0 0 * * 0' # Runs at 00:00 UTC every Sunday

jobs:
syncDB:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Use the version of Node.js that your project uses

- name: Install dependencies
run: npm ci

- name: Run sync-db.js
run: node sync-db.js

0 comments on commit 2f78b21

Please sign in to comment.