Update truth data #733
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 truth data | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Update truth data' | |
required: false | |
schedule: | |
- cron: "30 17 * * *" | |
jobs: | |
update_truth_data: | |
if: github.repository_owner == 'cdcepi' | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install dependencies | |
run: | | |
install.packages(c("tidyverse", "dplyr", "readr", "covidcast", "lubridate", "httr", "jsonlite", "RSocrata")) | |
shell: Rscript {0} | |
- name: Generate truth csv files | |
run: Rscript data-truth/get_truth.R | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v7 | |
with: | |
add: 'data-truth' | |
message: "Update truth data" | |
default_author: github_actions | |
push: true | |