Skip to content

Autorun GitHub Spider #1

Autorun GitHub Spider

Autorun GitHub Spider #1

Workflow file for this run

name: Autorun GitHub Spider
on:
schedule:
- cron: '0 2 * * *' # Runs at 2 AM UTC, which is 10 AM CST
jobs:
run-spider:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12' # Specify the Python version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Ensure you have a requirements.txt file
- name: Run GitHub Spider
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python github_spider.py