Skip to content

Update GitHub Actions workflows and remove unused run.yml file #1

Update GitHub Actions workflows and remove unused run.yml file

Update GitHub Actions workflows and remove unused run.yml file #1

Workflow file for this run

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