Skip to content

Commit

Permalink
Merge pull request #10 from stefanprodan/linting-off
Browse files Browse the repository at this point in the history
Add linting option
  • Loading branch information
stefanprodan authored Aug 21, 2020
2 parents a83e2c2 + fdbcd2c commit eeda28f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Inputs:
* `branch` The branch to publish charts, defaults to `gh-pages`
* `target_dir` The target directory to store the charts, defaults to `.`
* `helm_version` The Helm CLI version, defaults to the latest release
* `helm_version` The Helm CLI version, defaults to the latest release
* `linting` Toggle Helm linting, can be disabled by setting it to `off`

## Examples

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ inputs:
helm_version:
description: "The Helm CLI version"
required: false
linting:
description: "Toggle Helm linting, can be disabled by setting it to 'off'"
required: false
runs:
using: 'docker'
image: 'Dockerfile'
Expand All @@ -41,3 +44,4 @@ runs:
- ${{ inputs.branch }}
- ${{ inputs.target_dir }}
- ${{ inputs.helm_version }}
- ${{ inputs.linting }}
5 changes: 4 additions & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ REPOSITORY=$5
BRANCH=$6
TARGET_DIR=$7
HELM_VERSION=$8
LINTING=$9

CHARTS=()
CHARTS_TMP_DIR=$(mktemp -d)
Expand Down Expand Up @@ -71,7 +72,9 @@ main() {
locate
download
dependencies
lint
if [[ "$LINTING" != "off" ]]; then
lint
fi
package
upload
}
Expand Down

0 comments on commit eeda28f

Please sign in to comment.