1 2 3 4 5
#!/bin/bash file_path=$(jq -r '.tool_input.file_path') if [[ "$file_path" =~ \.php$ ]]; then php-cs-fixer fix "$file_path" 2>/dev/null || true fi