Use "version" instead of "shellcheck_version" for the input (#50)

This commit is contained in:
Joakim Sørensen 2021-11-14 10:21:33 +01:00 committed by GitHub
parent a1080136d9
commit 0ef4a19bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -157,5 +157,5 @@ If running the latest stable version of Shellcheck is not to your liking, you ca
- name: Run ShellCheck - name: Run ShellCheck
uses: ludeeus/action-shellcheck@master uses: ludeeus/action-shellcheck@master
with: with:
shellcheck_version: v0.7.0 version: v0.7.0
``` ```

View File

@ -30,7 +30,7 @@ inputs:
description: "Output format (checkstyle, diff, gcc, json, json1, quiet, tty)" description: "Output format (checkstyle, diff, gcc, json, json1, quiet, tty)"
required: false required: false
default: "gcc" default: "gcc"
shellcheck_version: version:
description: "Specify a concrete version of ShellCheck to use" description: "Specify a concrete version of ShellCheck to use"
required: false required: false
default: "stable" default: "stable"
@ -64,7 +64,7 @@ runs:
osvariant="linux" osvariant="linux"
fi fi
scversion="${{ inputs.shellcheck_version }}" scversion="${{ inputs.version }}"
baseurl="https://github.com/koalaman/shellcheck/releases/download" baseurl="https://github.com/koalaman/shellcheck/releases/download"
curl -Lso "${{ github.action_path }}/sc.tar.xz" \ curl -Lso "${{ github.action_path }}/sc.tar.xz" \