Skip to content

Commit

Permalink
fix: πŸ› Fix input
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Jan 2, 2025
1 parent d0b863a commit 7e7954f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
description: 'Check changed files'
required: false
default: true
codelimit-version:
codelimit_version:
description: 'CodeLimit version'
required: false
default: 'latest'
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 7e7954f

Please sign in to comment.