Skip to content

Merge pull request #67 from callme-Shadow/main #45

Merge pull request #67 from callme-Shadow/main

Merge pull request #67 from callme-Shadow/main #45

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 Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Dependencies
run: |
poetry install
- name: Generate Prisma Client
run: |
poetry run prisma generate
- name: Run Python Script
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: |
poetry run python update_nodes.py
- 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