diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..4e2e70c878 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +internal/*.tf text eol=lf +internal/*.tofu text eol=lf diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a3a104f066..3b3c4e65ef 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 }}