ludeeus / action-shellcheck

GitHub action for ShellCheck.
MIT License
292 stars 69 forks source link

How to add shellcheck flags? #5

Closed angristan closed 4 years ago

angristan commented 4 years ago

How do I add a flag to the action? Like -e SC1091.

I tried this:

on: push
name: ShellCheck
jobs:
  shellcheck:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: shellcheck
      uses: ludeeus/action-shellcheck@master
      with:
        args: -e SC1091

but it has no effect.

ghost commented 4 years ago

+1

angristan commented 4 years ago

I ended up using an ENV variable which worked: https://github.com/angristan/wireguard-install/commit/02092b94a690d6495fc7d5b85aed2ddec1f4bfef

ludeeus commented 4 years ago

Nice @angristan I've updated the README with an example for it now