update description date #11
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, master] | |
pull_request: | |
branches: [main, master] | |
name: build | |
jobs: | |
render: | |
name: build | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 # This is important to set for `git diff-tree` to work below | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
extra-repositories: 'https://fawda123.r-universe.dev' | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rmarkdown | |
packages: | |
WtRegDO | |
any::devtools | |
- name: Render index | |
run: Rscript -e 'rmarkdown::render("README.Rmd")' | |
- name: Commit results | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git add -A | |
git commit -m 'Re-build Rmarkdown files' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" |