Skip to content

Commit f0e561e

Browse files
Update pr-commnads.yaml to the latest (#4157)
1 parent 65ecdc1 commit f0e561e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/pr-commands.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
if: startsWith(github.event.comment.body, '/document')
88
name: document
99
runs-on: macOS-latest
10+
env:
11+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1012
steps:
1113
- uses: actions/checkout@v2
1214
- uses: r-lib/actions/pr-fetch@master
@@ -19,6 +21,8 @@ jobs:
1921
run: Rscript -e 'roxygen2::roxygenise()'
2022
- name: commit
2123
run: |
24+
git config --local user.email "[email protected]"
25+
git config --local user.name "GitHub Actions"
2226
git add man/\* NAMESPACE
2327
git commit -m 'Document'
2428
- uses: r-lib/actions/pr-push@master
@@ -28,6 +32,8 @@ jobs:
2832
if: startsWith(github.event.comment.body, '/style')
2933
name: style
3034
runs-on: macOS-latest
35+
env:
36+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3137
steps:
3238
- uses: actions/checkout@v2
3339
- uses: r-lib/actions/pr-fetch@master
@@ -40,13 +46,10 @@ jobs:
4046
run: Rscript -e 'styler::style_pkg()'
4147
- name: commit
4248
run: |
49+
git config --local user.email "[email protected]"
50+
git config --local user.name "GitHub Actions"
4351
git add \*.R
4452
git commit -m 'Style'
4553
- uses: r-lib/actions/pr-push@master
4654
with:
4755
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

0 commit comments

Comments
 (0)