Skip to content

ICG Download

ICG Download #78

Workflow file for this run

on:
push:
branches:
- main
- master
schedule:
# https://crontab.cronhub.io/
- cron: "0 10 15,25 * *" # At 10:00 AM, on day 1 of the month
name: ICG Download
jobs:
generate-data:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
- uses: r-lib/actions/setup-pandoc@v1
- name: Generate ICG data
run: |
source(".github/source_R/icg.R")
shell: Rscript {0}
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git pull
git add --all
git commit -am "add ICG data on `date +'%Y-%m-%d %H:%M:%S'`"
git push
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}