#!/bin/bash file_path=$(jq -r '.tool_input.file_path') if [[ "$file_path" =~ (CMakeLists\.txt|\.cmake)$ ]]; then cmake-format -i "$file_path" fi