style and docs: run devtools::document() and styler::style_pkg() #257
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
# document and style using reusable workflow | |
# This workflow runs devtools::document and styler::style_active_package(), then opens a pull request to the branch | |
# That started the workflow with the changes | |
name: call-doc-and-style-r | |
# on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows | |
on: | |
# workflow_dispatch requires pushing a button to run the workflow manually. uncomment the following line to add: | |
workflow_dispatch: | |
# Runs the workflow on each push to the main or master branch: | |
push: | |
branches: | |
- main | |
jobs: | |
call-workflow: | |
uses: nmfs-fish-tools/ghactions4r/.github/workflows/doc-and-style-r.yml@main | |
secrets: | |
PAT: ${{ secrets.PAT }} |