Merge pull request #5 from USEPA/piggyback_tkg #5
Workflow file for this run
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: Render documents and upload | ||
on: [push] | ||
jobs: | ||
render_document: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: r-lib/actions/setup-r@v2 | ||
- name: Install packages | ||
run: | | ||
Rscript -e 'install.packages("tidyverse")' | ||
Rscript -e 'install.packages("openxlsx")' | ||
Rscript -e 'install.packages("devtools")' | ||
- name: Run createsystemData | ||
run: source("createsystemData_main.R") | ||
run: source("createsystemData_sv.R") | ||
- name: Commit results | ||
run: | | ||
git config --local core.autocrlf false | ||
git config --local user.email "${{ github.actor }}@users.noreply.github.com" | ||
git config --local user.name "${{ github.actor }}" | ||
git add data/sysdata** | ||
git pull origin ${{ github.head_ref }} --autostash --rebase -X ours | ||
git commit -a -m "update systemdata" | ||
git push |