Skip to content

Run Python Script on Schedule #61

Run Python Script on Schedule

Run Python Script on Schedule #61

Workflow file for this run

name: Run Python Script on Schedule
on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight UTC
workflow_dispatch: # Allows manual triggering from the GitHub Actions tab
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run Python script
run: python script.py