mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Ensure internal/*.tf files have the same line endings in all platforms (#3189)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3aed4b56b9
commit
c29311ee82
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
internal/*.tf text eol=lf
|
||||
internal/*.tofu text eol=lf
|
||||
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
- id: diff
|
||||
run: |
|
||||
git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin ${{github.event.pull_request.base.ref}}
|
||||
echo "go=$(git diff --name-only origin/${{github.event.pull_request.base.ref}} | grep -e '\.go' -e '\.github' -e 'go\.mod' -e 'go\.sum' | wc -l)" | tee -a "$GITHUB_OUTPUT"
|
||||
echo "go=$(git diff --name-only origin/${{github.event.pull_request.base.ref}} | grep -e '\.go' -e '\.github' -e 'go\.mod' -e 'go\.sum' -e '\.gitattributes' | wc -l)" | tee -a "$GITHUB_OUTPUT"
|
||||
outputs:
|
||||
go: ${{ steps.diff.outputs.go }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user