Add build function check for current OS and update validation logic

This commit is contained in:
crazywhalecc
2025-12-10 13:38:25 +08:00
parent 66d3af518b
commit 458af6ac78
5 changed files with 57 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
"enabled": true,
"actions": [
{
"action": "composer cs-fix -- --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php}",
"action": ".\\vendor\\bin\\php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php}",
"conditions": [
{
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",