Update Ratings #182
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: Update Ratings | |
on: | |
schedule: | |
# every 14 days | |
- cron: "0 15 3 * *" | |
# can be triggered manually | |
workflow_dispatch: | |
jobs: | |
update_ratings: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.4.0 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v18 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests | |
run: cd src && nix develop .#test -c pytest | |
- name: Run update_reviews.py | |
run: cd src && nix develop .#reviews -c python update_reviews.py | |
- name: Add & Commit | |
uses: EndBug/add-and-commit@v7.1.0 | |
with: | |
message: update data.yaml via update_reviews.py |