Skip to content

Commit

Permalink
update_stats workflow: run runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Aug 12, 2024
1 parent 2dcecc2 commit d2c22d7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/update_stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update cache files

# on: push
on:
schedule:
- cron: "20 21 * * *"

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Display system info
run: |
python -c "import os; os.getcwd()"
python -c "import sys; print(sys.version)"
- name: Install package
run: |
pip install setuptools --upgrade
pip install .
- name: Run update script
run: |
python -m repo_stats.runner -a ${{ secrets.ADS_TOKEN }} -g ${{ secrets.GIT_TOKEN }} -c "cache"

0 comments on commit d2c22d7

Please sign in to comment.