feat(megalinter): add ability to enable/disable linters

This commit is contained in:
2024-06-17 19:02:05 +03:00
parent fe3e3933f8
commit 322d149704

View File

@@ -5,6 +5,15 @@ name: MegaLinter
on:
workflow_call:
inputs:
enabled-linters:
required: false
type: string
default: ""
disabled-linters:
required: false
type: string
default: ""
secrets:
gitea-token:
required: true
@@ -14,6 +23,8 @@ env: # Comment env block if you don't want to apply fixes
APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool)
APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all)
APPLY_FIXES_MODE: commit # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request)
ENABLE_LINTERS: ${{ inputs.enabled-linters }}
DISABLE_LINTERS: ${{ inputs.disabled-linters }}
# concurrency:
# group: ${{ github.ref }}-${{ github.workflow }}