Skip to content

Commit

Permalink
gives default for should_webhook_be_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed May 8, 2021
1 parent e440992 commit 4123501
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ inputs:
exclude_commit_from_author_names_json:
required: false
description: 'For update_changelog, do not includes commit from user certain committer in the CHANGELOG.md, ex: ''["denoify_ci"]'''
default: '["github_actions_toolkit"]'
default: '["actions"]'
module_name:
required: false
description: 'A candidate module name, Example: lodash'
Expand All @@ -44,7 +44,8 @@ inputs:
description: 'For string_replace, Example ''_'''
should_webhook_be_enabled:
required: false
description: 'true|false, For debugging purpose, with setup_repo_webhook_for_deno_land_publishing'
description: 'true|false, Should the create webhook be enabled, with setup_repo_webhook_for_deno_land_publishing'
default: 'true'
github_token:
required: false
description: 'GitHub Personal access token'
Expand Down
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8765,7 +8765,7 @@ function getInputDescription(inputName) {
case "input_string": return `For string_replace, the string to replace`;
case "search_value": return `For string_replace, Example '-' ( Will be used as arg for RegExp constructor )`;
case "replace_value": return `For string_replace, Example '_'`;
case "should_webhook_be_enabled": return `true|false, For debugging purpose, with setup_repo_webhook_for_deno_land_publishing`;
case "should_webhook_be_enabled": return `true|false, Should the create webhook be enabled, with setup_repo_webhook_for_deno_land_publishing`;
case "github_token": return "GitHub Personal access token";
}
}
Expand All @@ -8776,7 +8776,8 @@ function getInputDefault(inputName) {
case "repo": return "${{github.event.repository.name}}";
case "branch": return "${{ github.sha }}";
case "github_token": return "${{ github.token }}";
case "exclude_commit_from_author_names_json": return '["github_actions_toolkit"]';
case "exclude_commit_from_author_names_json": return '["actions"]';
case "should_webhook_be_enabled": return "true";
}
}
exports.getInputDefault = getInputDefault;
Expand Down
5 changes: 3 additions & 2 deletions src/inputHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function getInputDescription(inputName: typeof inputNames[number]): strin
case "input_string": return `For string_replace, the string to replace`;
case "search_value": return `For string_replace, Example '-' ( Will be used as arg for RegExp constructor )`;
case "replace_value": return `For string_replace, Example '_'`;
case "should_webhook_be_enabled": return `true|false, For debugging purpose, with setup_repo_webhook_for_deno_land_publishing`;
case "should_webhook_be_enabled": return `true|false, Should the create webhook be enabled, with setup_repo_webhook_for_deno_land_publishing`;
case "github_token": return "GitHub Personal access token";
}
}
Expand All @@ -84,7 +84,8 @@ export function getInputDefault(inputName: typeof inputNames[number]): string |
case "repo": return "${{github.event.repository.name}}";
case "branch": return "${{ github.sha }}";
case "github_token": return "${{ github.token }}";
case "exclude_commit_from_author_names_json": return '["github_actions_toolkit"]';
case "exclude_commit_from_author_names_json": return '["actions"]';
case "should_webhook_be_enabled": return "true";
}

}
Expand Down

0 comments on commit 4123501

Please sign in to comment.