Skip to content

Merge pull request #89 from HenGPlayZ/main #78

Merge pull request #89 from HenGPlayZ/main

Merge pull request #89 from HenGPlayZ/main #78

Workflow file for this run

name: Update Nodes
on:
push:
branches:
- main
jobs:
remove_duplicates:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Node.js and Yarn
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.yarnpkg.com/'
- name: Install Dependencies
run: yarn install
- name: Generate Prisma Client
run: npx prisma generate
- name: Run TypeScript Script
env:
TURSO_DATABASE_URL: ${{ secrets.TURSO_DATABASE_URL }}
TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: yarn start
- name: Commit Changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add .
git diff-index --quiet HEAD || git commit -m "Update Nodes"
git push