-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.07 KB
/
add_review_nums.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
name: Add JOSS Reviews
on:
schedule:
# * is a special character in YAML so you have to quote this string
# runs twice a day
- cron: '*/60 */24 * * *'
workflow_dispatch:
jobs:
notebooks:
name: "Scrape and add JOSS reviews"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
submodules: 'true'
- name: Set up Python
uses: actions/setup-python@main
with:
python-version: 3.8
- name: Scrape the number of JOSS reviews
env:
SHEETS_SECRET: ${{ secrets.SHEETS_API_KEY }}
run: |
python3 -m pip install --upgrade pip
pip3 install --upgrade setuptools
python3 -m pip install -e .
python3 src/cv/scripts/scrape_joss.py "$SHEETS_SECRET"
- name: Write the number of JOSS reviews
run: |
python src/cv/scripts/write_joss.py
- run: git pull
- name: Committing changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Scrape and add JOSS reviews