Skip to content

Commit

Permalink
Update quality assurance workflow to improve code formatting***
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 bb94aab commit adadbc2
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 @@ -26,7 +26,7 @@ jobs:
uses: ./.github/actions/setup-ktlint
- run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
git diff --name-only --relative --color never ${{ github.event.before }} ${{ github.sha }} -- '*.kt' '*.kts' | ktlint --relative --patterns-from-stdin=''
git diff --name-only --relative --color never ${{ github.event.before }} ${{ github.event.after }} -- '*.kt' '*.kts'
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
ktlint --relative $(gh pr diff --name-only --color never ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ')
fi
Expand Down

0 comments on commit adadbc2

Please sign in to comment.