mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-28 05:58:40 -04:00
Fix SVGO zero percent filtering in CI (#9422)
Because of the environment variable `CI=true` being passed in GitHub Actions to SVGO, it outputted colored text with ANSI escape sequences, which broke the awk 0% filtering (for unchanged files). Ref: https://github.com/FreshRSS/FreshRSS/pull/9361#discussion_r4147827482
This commit is contained in:
1 parent
4a3c6b6b60
commit
07617c48e6
1 file changed
+1
-1
+1
-1
@@ -28,7 +28,7 @@
|
||||
"markdownlint": "markdownlint-cli2",
|
||||
"markdownlint_fix": "markdownlint-cli2 --fix",
|
||||
"rtlcss": "rtlcss -d p/themes/ && find p/themes/ -type f -name '*.rtl.rtl.css' -delete",
|
||||
"svgo": "find p/ docs/ -name '*.svg' -exec svgo {} + | awk '/:$/{name=$0;next} /KiB/ && !/ - 0% /{print name; print}'",
|
||||
"svgo": "find p/ docs/ -name '*.svg' -exec svgo --no-color {} + | awk '/:$/{name=$0;next} /KiB/ && !/ - 0% /{print name; print}'",
|
||||
"stylelint": "stylelint '**/*.css'",
|
||||
"stylelint_fix": "stylelint --fix '**/*.css'",
|
||||
"test": "npm run eslint && npm run stylelint && npm run markdownlint",
|
||||
|
||||
Reference in new issue
Block a user