use gfm #71
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
on: | |
push: | |
branches: main | |
jobs: | |
import-data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install packages | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
packages: | | |
any::tidyverse | |
any::googlesheets4 | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Import data | |
run: Rscript -e 'source("actions_print.R")' | |
- name: Commit results | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git commit -m 'Data updated' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" |