feat(megalinter): add ability to enable/disable linters
This commit is contained in:
@@ -5,6 +5,15 @@ name: MegaLinter
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
enabled-linters:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
disabled-linters:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
secrets:
|
secrets:
|
||||||
gitea-token:
|
gitea-token:
|
||||||
required: true
|
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: 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_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)
|
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:
|
# concurrency:
|
||||||
# group: ${{ github.ref }}-${{ github.workflow }}
|
# group: ${{ github.ref }}-${{ github.workflow }}
|
||||||
|
|||||||
Reference in New Issue
Block a user