Skip to content

Commit

Permalink
Seems to be the "best" way to do this
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jennybc committed Feb 13, 2024
1 parent 14b817e commit a7d340c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a7d340c

Please sign in to comment.