diff --git a/.github/workflows/plugin-linting.yml b/.github/workflows/plugin-linting.yml index a191199..1420239 100644 --- a/.github/workflows/plugin-linting.yml +++ b/.github/workflows/plugin-linting.yml @@ -39,9 +39,12 @@ jobs: - name: Prettier run: | yarn prettier -v - [ -d "assets" ] && \ - yarn prettier --list-different \ - "assets/**/*.{scss,js,es6}" + if [ -d "assets" ]; then \ + yarn prettier --list-different \ + "assets/**/*.{scss,js,es6}" \ + else \ + exit 0 \ + fi - name: Rubocop run: bundle exec rubocop .