diff --git a/README.md b/README.md index adf1de2..6bdb24f 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ For more information on inputs, see the [API Documentation](https://developer.gi - `version`: The chart-testing version to install (default: `3.14.0`) - `yamllint_version`: The `yamllint` version to install (default: `1.33.0`) - `yamale_version`: The `yamale` version to install (default: `6.0.0`) +- `lint_config`: Path to a custom yamllint config file. If set, it replaces the default `lintconf.yaml` used by `ct lint` (default: none) ### Example Workflow diff --git a/action.yml b/action.yml index 1b657d2..c380ad4 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,10 @@ inputs: description: "The uv version to install (default: latest)" required: false default: 'latest' + lint_config: + description: "Path to a custom yamllint config file. If set, it replaces the default lintconf.yaml used by ct lint." + required: false + default: '' runs: using: composite steps: @@ -35,3 +39,8 @@ runs: --yamllint-version ${{ inputs.yamllint_version }} \ --yamale-version ${{ inputs.yamale_version }} shell: bash + - if: inputs.lint_config != '' + run: | + cp "${{ inputs.lint_config }}" "${CT_CONFIG_DIR}/lintconf.yaml" + echo "Custom yamllint config applied to ${CT_CONFIG_DIR}/lintconf.yaml" + shell: bash