Miscellaneous site updates #106
Workflow file for this run
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: | |
pull_request: | |
branches: [dev] | |
name: document | |
jobs: | |
document: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: install packages & document | |
shell: Rscript {0} | |
run: | | |
install.packages(c("devtools", "decor", "igraph")) | |
devtools::install(dependencies=TRUE) | |
devtools::document() | |
- name: Commit and push changes | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
git add man/\* NAMESPACE DESCRIPTION | |
git commit -m "Update documentation" || echo "No changes to commit" | |
git pull --ff-only | |
git push origin |