Skip to content

Commit

Permalink
Merge pull request #270 from tj-actions/feat/remove-unused-core.autoc…
Browse files Browse the repository at this point in the history
…rlf-setting

feat: remove unused core.autocrlf setting
  • Loading branch information
repo-ranger[bot] authored Mar 17, 2023
2 parents 55c2c1e + 16fbe2f commit 8b43cdb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ inputs:
description: 'Separator used to split the `files` input'
default: "\n"
required: false
autocrlf:
description: 'Modify the git config [core.autocrlf](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_autocrlf).'
default: 'input'
required: false
separator:
description: 'Output string separator.'
required: false
Expand Down Expand Up @@ -48,7 +44,6 @@ runs:
# INPUT_<VARIABLE_NAME> is not available in Composite run steps
# https://git.luolix.topmunity/t/input-variable-name-is-not-available-in-composite-run-steps/127611
INPUT_FILES_PATTERN_FILE: ${{ steps.glob.outputs.paths-output-file }}
INPUT_AUTO_CRLF: ${{ inputs.autocrlf }}
INPUT_SEPARATOR: ${{ inputs.separator }}
branding:
Expand Down
2 changes: 0 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ set -e

echo "::group::verify-changed-files"

git config --local core.autocrlf "$INPUT_AUTO_CRLF"

if [[ -n "$INPUT_FILES_PATTERN_FILE" ]]; then
TRACKED_FILES=$(git diff --diff-filter=ACMUXTRD --name-only | grep -x -E -f "$INPUT_FILES_PATTERN_FILE" | awk -v d="|" '{s=(NR==1?s:s d)$0}END{print s}')

Expand Down

1 comment on commit 8b43cdb

@yahyafurkann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdow

Please sign in to comment.