-
Notifications
You must be signed in to change notification settings - Fork 34
42 lines (31 loc) · 931 Bytes
/
ratings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@v4.1.1
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Use Cachix
uses: cachix/cachix-action@v12
with:
name: devenv
- name: Install devenv.sh
run: nix profile install --accept-flake-config tarball+https://install.devenv.sh/latest
- name: Build the devenv shell and run any pre-commit hooks
run: devenv ci
- name: Run tests
run: devenv shell run_tests
- name: Run update_reviews
run: devenv shell update_reviews
- name: Add & Commit
uses: EndBug/add-and-commit@v9.1.4
with:
message: update data.yaml via update_reviews.py