Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added debug option #41

Closed
wants to merge 1 commit into from
Closed
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 @@ -25,6 +25,7 @@ payload if the action was triggered by a deployment.
- `task`: Task name. If the task is "remove" it will remove the configured helm
release.
- `dry-run`: Helm dry-run option.
- `debug`: Helm debug option.
- `token`: Github repository token. If included and the event is a deployment
then the deployment_status event will be fired.
- `value-files`: Additional value files to apply to the helm chart. Expects a
Expand Down
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ inputs:
values:
description: Helm chart values, expected to be a YAML or JSON string.
required: false
task:
description: Task name. If the task is "remove" it will remove the configured helm release.
required: false
dry-run:
description: Task name. If the task is "remove" it will remove the configured
helm release.
description: Helm dry-run option
required: false
debug:
description: Helm debug option
required: false
helm:
description: Helm binary to execute, one of [helm, helm3].
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ async function run() {
const timeout = getInput("timeout");
const repository = getInput("repository");
const dryRun = core.getInput("dry-run");
const debug = core.getInput("debug");
const secrets = getSecrets(core.getInput("secrets"));

core.debug(`param: track = "${track}"`);
Expand All @@ -178,6 +179,7 @@ async function run() {
core.debug(`param: chart_version = "${chartVersion}"`);
core.debug(`param: values = "${values}"`);
core.debug(`param: dryRun = "${dryRun}"`);
core.debug(`param: debug = "${debug}"`);
core.debug(`param: task = "${task}"`);
core.debug(`param: version = "${version}"`);
core.debug(`param: secrets = "${JSON.stringify(secrets)}"`);
Expand Down Expand Up @@ -208,6 +210,7 @@ async function run() {
}

if (dryRun) args.push("--dry-run");
if (debug) args.push("--debug");
if (appName) args.push(`--set=app.name=${appName}`);
if (version) args.push(`--set=app.version=${version}`);
if (chartVersion) args.push(`--version=${chartVersion}`);
Expand Down