Skip to content

Commit

Permalink
Configure git through .gitattributes rather than in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed May 7, 2021
1 parent 4d56e32 commit 193c8b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# On GitHub Actions with Windows, git will use CRLF by default when checking out
# the repo. If this file has CRLF line endings, R's check process will complain.
configure.ac text eol=lf
4 changes: 0 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
# This ensures `configure.ac` isn't given CRLF line endings when cloned
- name: Configure git
run: git config --global core.autocrlf false

- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
Expand Down

0 comments on commit 193c8b6

Please sign in to comment.