Skip to content

Commit eeda28f

Browse files
authored
Merge pull request #10 from stefanprodan/linting-off
Add linting option
2 parents a83e2c2 + fdbcd2c commit eeda28f

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Inputs:
1313
* `branch` The branch to publish charts, defaults to `gh-pages`
1414
* `target_dir` The target directory to store the charts, defaults to `.`
1515
* `helm_version` The Helm CLI version, defaults to the latest release
16+
* `helm_version` The Helm CLI version, defaults to the latest release
17+
* `linting` Toggle Helm linting, can be disabled by setting it to `off`
1618

1719
## Examples
1820

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ inputs:
2929
helm_version:
3030
description: "The Helm CLI version"
3131
required: false
32+
linting:
33+
description: "Toggle Helm linting, can be disabled by setting it to 'off'"
34+
required: false
3235
runs:
3336
using: 'docker'
3437
image: 'Dockerfile'
@@ -41,3 +44,4 @@ runs:
4144
- ${{ inputs.branch }}
4245
- ${{ inputs.target_dir }}
4346
- ${{ inputs.helm_version }}
47+
- ${{ inputs.linting }}

src/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ REPOSITORY=$5
2525
BRANCH=$6
2626
TARGET_DIR=$7
2727
HELM_VERSION=$8
28+
LINTING=$9
2829

2930
CHARTS=()
3031
CHARTS_TMP_DIR=$(mktemp -d)
@@ -71,7 +72,9 @@ main() {
7172
locate
7273
download
7374
dependencies
74-
lint
75+
if [[ "$LINTING" != "off" ]]; then
76+
lint
77+
fi
7578
package
7679
upload
7780
}

0 commit comments

Comments
 (0)