Update Images #9409
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 Images | |
on: | |
schedule: | |
- cron: '5 0,4,8,12,16,20 * * *' | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v1 | |
- name: Cache R packages | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.R_LIBS_USER }} | |
key: ${{ runner.os }}-r-${{ matrix.config.r }}-3-${{ hashFiles('.github/depends.Rds') }} | |
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-3- | |
- name: Run Script | |
run: |- | |
Rscript -e "install.packages(c('renv','pacman','Rcpp'))" | |
Rscript -e 'renv::consent(provided = TRUE)' | |
Rscript -e "renv::restore()" | |
Rscript -e "source('stats_hicetnunc.R')" | |
Rscript -e "source('objkt4objkt_chart.R')" | |
- name: Commit and push files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "ries9112" | |
git add . | |
git commit -m "Update GitHub readme" -a | |
git push https://ries9112:${{secrets.GITHUB_TOKEN}}@github.com/ries9112/NFTs-hicetnunc.git HEAD:master --force |