From a7d340c8334db2ca8458d59cff1c24accf7d39a3 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Tue, 13 Feb 2024 10:22:09 -0800 Subject: [PATCH] Seems to be the "best" way to do this Previous approach is working but on reading up on how people do this, I learned this is more typical. Other folks also wish that this would be done automatically by `actions/checkout` but so far it is not. --- .github/workflows/R-CMD-check.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 5259ce697..a1e8e305e 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -57,11 +57,11 @@ jobs: extra-packages: any::rcmdcheck needs: check - - name: git config + - name: Configure Git User if: matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' run: | - git config --global user.name "$GITHUB_ACTOR" - git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com" + git config --global user.name github-actions[bot] + git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com - uses: r-lib/actions/check-r-package@v2 env: