fl #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚀 Update | |
on: | |
push: | |
branches: | |
- development | |
jobs: | |
update: | |
name: 🚀 Update | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check current directory | |
run: | | |
pwd | |
ls -lah | |
- name: 📂 Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 50 | |
- name: 🛠 Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
- name: 🚀 install tsx | |
run: npm install tsx -G | |
- name: Update DB | |
run: npm run syncdbmdx | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} |