Skip to content

Workflow file for this run

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"