From a3f192d881c80843600d63e9b21c026a7101b904 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Sun, 2 Aug 2020 21:28:44 +0900 Subject: [PATCH] Update pr-commnads.yaml to the latest --- .github/workflows/pr-commands.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-commands.yaml b/.github/workflows/pr-commands.yaml index 97df2e6780..6f6f8e2de2 100644 --- a/.github/workflows/pr-commands.yaml +++ b/.github/workflows/pr-commands.yaml @@ -7,6 +7,8 @@ jobs: if: startsWith(github.event.comment.body, '/document') name: document runs-on: macOS-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v2 - uses: r-lib/actions/pr-fetch@master @@ -19,6 +21,8 @@ jobs: run: Rscript -e 'roxygen2::roxygenise()' - name: commit run: | + git config --local user.email "actions@github.com" + git config --local user.name "GitHub Actions" git add man/\* NAMESPACE git commit -m 'Document' - uses: r-lib/actions/pr-push@master @@ -28,6 +32,8 @@ jobs: if: startsWith(github.event.comment.body, '/style') name: style runs-on: macOS-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v2 - uses: r-lib/actions/pr-fetch@master @@ -40,13 +46,10 @@ jobs: run: Rscript -e 'styler::style_pkg()' - name: commit run: | + git config --local user.email "actions@github.com" + git config --local user.name "GitHub Actions" git add \*.R git commit -m 'Style' - uses: r-lib/actions/pr-push@master with: repo-token: ${{ secrets.GITHUB_TOKEN }} - # A mock job just to ensure we have a successful build status - finish: - runs-on: ubuntu-latest - steps: - - run: true