Run repo scraper #293
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run repo scraper | |
on: | |
schedule: | |
- cron: "0 */6 * * *" # Runs every 6 hours | |
workflow_dispatch: {} # Allows manual executions | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
cache: 'pip' | |
cache-dependency-path: setup.py | |
- name: Auth with GCP | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Install dependencies | |
run: | | |
pip install -r tools/repo_stats/requirements.txt | |
pip list | |
- name: Run repo scraper | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
python tools/repo_stats/scraper.py |