Skip to content

Update nodes.yml to run every minute in GitHub Actions workflow #8

Update nodes.yml to run every minute in GitHub Actions workflow

Update nodes.yml to run every minute in GitHub Actions workflow #8

Workflow file for this run

name: Update Nodes
# Runs every minute
on:
schedule:
- cron: '*/1 * * * *'
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
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 }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
run: |
poetry run python3 main.py