action-shellcheck icon indicating copy to clipboard operation
action-shellcheck copied to clipboard

Allow to skip downloading shellcheck if it is installed already

Open SimonHeimberg opened this issue 1 year ago • 1 comments

Checklist

  • [x] This Feature Request only contains 1 request (if you have multiple open multiple feature requests).

The idea

Allow to skip downloading shellcheck if it is installed already.

Implementation

  • As an if condition on the step "Download shellcheck" (set by a new input or by a special value of "version")
  • or probably better check in the bash script of this step if the command is available (maybe if "version" is (like) "-stable" and downloads "stable" if not available).

Alternatives

???

Additional context

shellcheck is installed on ubuntu runners: https://github.com/actions/runner-images/blob/ubuntu22/20230710.1/images/linux/Ubuntu2204-Readme.md#installed-apt-packages

SimonHeimberg avatar Jul 26 '23 08:07 SimonHeimberg

Would like this too as we already use asdf as our general setup step. so that handles installing shellcheck for us.

airtonix avatar Dec 12 '23 03:12 airtonix