You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Teston:
pull_request:
branches:
- '*'jobs:
build:
runs-on: ubuntu-lateststeps:
- shell: bashrun: | pushd bla ls -la
then actionlint — without any other configuration — comes back clean:
> actionlint
>
However, if I then copy the run: script into a separate shell script:
#! /bin/bashpushd bla
ls -la
and run shellcheck then I get this:
> shellcheck test.sh
In test.sh line 3:
pushd bla
^-------^ SC2164 (warning): Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.
Did you mean:
pushd bla || exit
For more information:
https://www.shellcheck.net/wiki/SC2164 -- Use 'pushd ... || exit' or 'pushd...
>
The warning here is different from the ones documented
Hello, thank you for a great tool!
Today I noticed a puzzling behavior with the shellcheck integration for
run:
. Suppose this workflow:then
actionlint
— without any other configuration — comes back clean:However, if I then copy the
run:
script into a separate shell script:and run
shellcheck
then I get this:The warning here is different from the ones documented
This is for the latest version of
actionlint
:What’s happening here? Am I missing a configuration option?
The text was updated successfully, but these errors were encountered: