File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 7
7
if : startsWith(github.event.comment.body, '/document')
8
8
name : document
9
9
runs-on : macOS-latest
10
+ env :
11
+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
10
12
steps :
11
13
- uses : actions/checkout@v2
12
14
- uses : r-lib/actions/pr-fetch@master
19
21
run : Rscript -e 'roxygen2::roxygenise()'
20
22
- name : commit
21
23
run : |
24
+ git config --local user.email "[email protected] "
25
+ git config --local user.name "GitHub Actions"
22
26
git add man/\* NAMESPACE
23
27
git commit -m 'Document'
24
28
- uses : r-lib/actions/pr-push@master
28
32
if : startsWith(github.event.comment.body, '/style')
29
33
name : style
30
34
runs-on : macOS-latest
35
+ env :
36
+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
31
37
steps :
32
38
- uses : actions/checkout@v2
33
39
- uses : r-lib/actions/pr-fetch@master
@@ -40,13 +46,10 @@ jobs:
40
46
run : Rscript -e 'styler::style_pkg()'
41
47
- name : commit
42
48
run : |
49
+ git config --local user.email "[email protected] "
50
+ git config --local user.name "GitHub Actions"
43
51
git add \*.R
44
52
git commit -m 'Style'
45
53
- uses : r-lib/actions/pr-push@master
46
54
with :
47
55
repo-token : ${{ secrets.GITHUB_TOKEN }}
48
- # A mock job just to ensure we have a successful build status
49
- finish :
50
- runs-on : ubuntu-latest
51
- steps :
52
- - run : true
You can’t perform that action at this time.
0 commit comments