I am trying to exclude .md
files from my super linter because it gets caught every time but can't seem to figure it out can someone help?
jobs:
super-linter:
name: Lint code and merge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Super-Linter
uses: github/[email protected]
with:
exclusions: |
markdown: true
files: ${{ join(github.event.push_request.changed_files, ',') }}
deploy:
runs-on: self-hosted
needs: [super-linter]
steps:
#- uses: actions/checkout@v2 #this is used for if you want to push all source code into runner
- name: update code base
working-directory: /test_pipe/www/html
run: sudo git pull origin master
- name: restart
working-directory: /test_pipe/www/html
run: sudo systemctl restart nginx
I have tried using exclude and ignore but with no luck.
According to github/super-linter's Filter linted files section, you can use the environment variables to include and exclude files i.e.
FILTER_REGEX_INCLUDE
andFILTER_REGEX_EXCLUDE
respectively.See its Environment variables section for more details.
Apart from that, it provides
VALIDATE_*
variants of Boolean environment variables too to enable/disable linting per language so you can useVALIDATE_MARKDOWN: false
and it should also work for your use case.Not sure why you're using its
with: exclusions
orwith: files
inputs but https://github.com/github/super-linter/tree/v4.10.1 doesn't list anything like that.