diff --git a/README.md b/README.md index a374431..db53267 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,15 @@ jobs: ## Inputs -| Name | Description | Required | Default | -| --- | --- | --- | --- | -| token | GitHub token for storing results | false | ${{ github.token }} | -| check | Check changed files | false | true | -| codelimit-version | CodeLimit version | false | 'latest' | +- `token`: + Description: GitHub token for storing results + Required: false + Default: ${{ github.token }} +- `check`: + Description: Check changed files + Required: false + Default: true +- `codelimit_version`: + Desciption: CodeLimit version + Required: false + Default: 'latest' diff --git a/action.yml b/action.yml index 69a0645..0579b1c 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ inputs: description: 'Check changed files' required: false default: true - codelimit-version: + codelimit_version: description: 'CodeLimit version' required: false default: 'latest' \ No newline at end of file diff --git a/src/action.ts b/src/action.ts index 0a2667c..9e36e61 100644 --- a/src/action.ts +++ b/src/action.ts @@ -128,7 +128,7 @@ async function updateRepository(octokit: Octokit, clBinary: string) { async function main() { info(`CodeLimit-action, version: ${version.revision}`); - const codeLimitVersion = getInput('codelimit-version') || 'latest'; + const codeLimitVersion = getInput('codelimit_version') || 'latest'; info(`CodeLimit version requested: ${codeLimitVersion}`); let clBinary; if (codeLimitVersion === 'latest') {