Skip to content

Commit

Permalink
Update quality-assurance.yaml to include ktlint check for pull requests
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 6ff8d4a commit bb6915c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/quality-assurance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
if [[ "${{ github.event_name }}" == "push" ]]; then
git diff --name-only --relative --color never ${{ github.event.before }} ${{ github.sha }} -- '*.kt' '*.kts' | grep -E "\.kts?$" | ktlint --relative --patterns-from-stdin=''
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
gh pr diff --name-only --color never ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' '
gh pr diff --name-only --color never ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ' | ktlint --relative
fi
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit bb6915c

Please sign in to comment.