-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (27 loc) · 1.07 KB
/
Generate-Vintage.yaml
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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
name: Generate A New Vintage
on:
# Every Week Friday at 1:15 AM
schedule:
- cron: '15 1 * * 5'
# Optional Workflow Dispatch Trigger
workflow_dispatch:
jobs:
GenerateNewVintage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
# https://blog--simonpcouch.netlify.app/blog/r-github-actions-commit/
- name: Install Dependencies
run: |
options(repos = c(CRAN = "https://cloud.r-project.org"))
install.packages(c("fastverse", "DBI", "RMySQL", "writexl", "seasonal", "samadb"))
library(fastverse)
fastverse_extend(samadb, seasonal, writexl, install = TRUE)
shell: Rscript {0}
- name: Generate Vintage
run: Rscript ./code/nowcast_data_econdata_clean.R
# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v4