theme-tools
theme-tools copied to clipboard
Not respecting `ignore` list on checks
This is my .theme-check.yml fil in the repo.
root: src
RemoteAsset:
enabled: true
ignore:
- snippets/head-assets.liquid
- snippets/video.liquid
- snippets/image.liquid
But still getting these warnings when running the workflow
This is the config for the workflow
- name: Theme Check
uses: shopify/theme-check-action@v2
with:
theme_root: './src'
flags: '--fail-level warning'
token: ${{ github.token }}
base: main
This issue seems to be related to https://github.com/Shopify/theme-tools/issues/1006
This works for me within the editor. I suspect there's a problem because the root property is qualified twice with theme_root & the config file.
What happens if you remove theme_root?
What could also be done is leave the config as is and move .theme-check.yml in src and remove the root: src from the config file.
❌ instead of this
root/
.theme-check.yml
src/
✅ try this
root/
src/
.theme-check.yml