add regex exclude
This commit is contained in:
13
.github/workflows/super-linter.yaml
vendored
13
.github/workflows/super-linter.yaml
vendored
@@ -33,6 +33,10 @@ on:
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
filter-regex-exclude:
|
||||
description: A regex to exclude files from linting
|
||||
required: false
|
||||
type: string
|
||||
|
||||
|
||||
permissions:
|
||||
@@ -92,6 +96,15 @@ jobs:
|
||||
run: |
|
||||
echo VALIDATE_ALL_CODEBASE=${{ !contains(github.event_name, 'pull_request') }}
|
||||
|
||||
# customize excluded paths and files with regex
|
||||
- name: FILTER_REGEX_EXCLUDE
|
||||
if: ${{ inputs.filter-regex-exclude }}
|
||||
run: |
|
||||
# shellcheck disable=2086
|
||||
{
|
||||
echo "FILTER_REGEX_EXCLUDE=${{ inputs.filter-regex-exclude }}" >> $GITHUB_ENV
|
||||
}
|
||||
|
||||
# disable non-DevOps focused linters that might run on sample code or 3rd party code
|
||||
# these env's will get pass to the next step
|
||||
- name: Disable non-DevOps linters
|
||||
|
||||
Reference in New Issue
Block a user