Skip to content

Commit

Permalink
feat: add support for optionally reading the .gitignore file (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed May 4, 2024
1 parent 531dd1d commit 3b18de8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: 'Indicates whether to match files in `.gitignore`'
default: "false"
required: true
read-gitignore:
description: 'Indicates whether to read `.gitignore`. The `.gitignore` file will be ignored if set to `false`. Overrides `match-gitignore-files`'
default: "false"
required: true
fail-if-changed:
description: 'Indicates whether to fail if files have changed.'
default: "false"
Expand Down Expand Up @@ -58,8 +62,9 @@ runs:
files-separator: ${{ inputs.files-separator }}
separator: "|"
match-directories: false
read-gitignore: ${{ inputs.read-gitignore }}
match-gitignore-files: ${{ inputs.match-gitignore-files }}
escape-paths: ${{ inputs.safe_output }}
safe-output: ${{ inputs.safe_output }}
- run: |
bash $GITHUB_ACTION_PATH/entrypoint.sh
id: verify-changed-files
Expand Down

0 comments on commit 3b18de8

Please sign in to comment.