Skip to content

Commit 8fe5fe3

Browse files
committed
chore: adds notebook build to cron
1 parent 32dbba9 commit 8fe5fe3

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/update-all-data.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,26 @@ jobs:
7575
exit 1
7676
fi
7777
78+
- name: Setup R
79+
uses: r-lib/actions/setup-r@v2
80+
with:
81+
r-version: '4.3.0'
82+
83+
- name: Install R dependencies
84+
run: |
85+
cd analysis
86+
R -e "install.packages(c('rmarkdown', 'tidyverse', 'jsonlite', 'here'), repos='https://cloud.r-project.org')"
87+
88+
- name: Build Notebook
89+
run: pnpm run build-notebook
90+
7891
- name: Commit and Push Changes
7992
run: |
8093
git config --global user.name 'github-actions[bot]'
8194
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
8295
8396
# Add specific files
84-
git add src/lib/data/data.csv static/recent_updates.json static/rss.xml
97+
git add src/lib/data/data.csv static/recent_updates.json static/rss.xml static/notebook/index.html src/lib/data/charts/*.json
8598
8699
# Check if there are changes
87100
if git diff --staged --quiet; then

0 commit comments

Comments
 (0)