Skip to content

Commit

Permalink
Create python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet authored Apr 9, 2024
1 parent 20fccad commit 992878b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update Nodes

on:
schedule:
- cron: '*/1 * * * *' # Runs every minute

jobs:
update:
runs-on: ubuntu-lates

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- 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

0 comments on commit 992878b

Please sign in to comment.