This action runs ShellCheck on every file containing shell code in the repository.
To determine if a file is a shell script, the output of file is matched
against the extended regular expression
((POSIX|Korn|Bourne-Again) shell|/usr/bin/env k?sh) scriptAdditionally, files with the extensions .sh, .bash and .ksh are checked.
uses: bewuethr/shellcheck-action@v2To get the latest version of a major release, the major release without minor and patch release can be used.
For example: if the latest release is v2.1.2,
uses: bewuethr/shellcheck-action@v2and
uses: bewuethr/shellcheck-action@v2.1.2will fetch v2.1.2. The advantage of using just @v2 is that minor releases
and patches are included without requiring a change; the advantage of using
@v2.1.2 is knowing that the action does 100% the same thing every time.
This is done via the release-tag-tracker action.