Merge branch 'main' of https://github.com/LukasWallrich/metaUI #46
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 | |
name: R-CMD-check | |
jobs: | |
document-and-dispatch: | |
name: document | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
r-version: 'release' | |
- name: Delete-Namespace | |
run: Rscript -e 'file.remove("NAMESPACE")' | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: system dependencies | |
run: sudo apt-get install libcurl4-openssl-dev libnode-dev | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck, any::roxygen2 | |
needs: check | |
- name: Document | |
run: Rscript -e 'roxygen2::roxygenise()' | |
- name: commit | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git add -f man/\* NAMESPACE | |
git commit -m 'Documentation' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" | |
- uses: r-lib/actions/check-r-package@v2 |