Skip to content

Commit

Permalink
Fix whitespace in quality-assurance.yaml file
Browse files Browse the repository at this point in the history
Signed-off-by: James Bradlee <[email protected]>
  • Loading branch information
testersen committed Apr 1, 2024
1 parent 7dbb501 commit 45dc60b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/quality-assurance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
args=$(gh pr diff --name-only ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ')
fi
args=$(echo -e "$args" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
if [[ -n "$args" ]]; then
echo "Running ktlint on: $args"
ktlint --relative $args
Expand Down

0 comments on commit 45dc60b

Please sign in to comment.