Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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