File tree Expand file tree Collapse file tree 2 files changed +35
-42
lines changed Expand file tree Collapse file tree 2 files changed +35
-42
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7171 else
7272 echo "No changes to commit."
7373 fi
74+
75+ document :
76+ needs : style
77+ runs-on : ubuntu-latest
78+ env :
79+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
80+ steps :
81+ - name : Checkout repo
82+ uses : actions/checkout@v3
83+ with :
84+ fetch-depth : 0
85+
86+ - name : Setup R
87+ uses : r-lib/actions/setup-r@v2
88+ with :
89+ use-public-rspm : true
90+
91+ - name : Install dependencies
92+ uses : r-lib/actions/setup-r-dependencies@v2
93+ with :
94+ extra-packages : any::roxygen2
95+ needs : roxygen2
96+
97+ - name : Document
98+ run : roxygen2::roxygenise()
99+ shell : Rscript {0}
100+
101+ - name : Commit and push changes
102+ run : |
103+ git config --local user.name "$GITHUB_ACTOR"
104+ git config --local user.email "[email protected] " 105+ git add man/\* NAMESPACE DESCRIPTION
106+ git commit -m "docs: update documentation (GHA)" || echo "No changes to commit"
107+ git pull --ff-only
108+ git push origin
You can’t perform that action at this time.
0 commit comments