We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dbb501 commit 45dc60bCopy full SHA for 45dc60b
.github/workflows/quality-assurance.yaml
@@ -40,6 +40,7 @@ jobs:
40
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
41
args=$(gh pr diff --name-only ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ')
42
fi
43
+ args=$(echo -e "$args" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
44
if [[ -n "$args" ]]; then
45
echo "Running ktlint on: $args"
46
ktlint --relative $args
0 commit comments