Skip to content

Commit bee6056

Browse files
committed
Update quality assurance workflow to remove unnecessary git command
Signed-off-by: James Bradlee <[email protected]>
1 parent d3cee5d commit bee6056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/quality-assurance.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: ./.github/actions/setup-ktlint
2727
- run: |
2828
if [[ "${{ github.event_name }}" == "push" ]]; then
29-
git diff --name-only --relative --color never ${{ github.event.before }} ${{ github.sha }} -- '*.kt' '*.kts' | grep -E "\.kts?$" | ktlint --relative --patterns-from-stdin=''
29+
git diff --name-only --relative --color never ${{ github.event.before }} ${{ github.sha }} -- '*.kt' '*.kts' | ktlint --relative --patterns-from-stdin=''
3030
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
3131
ktlint --relative $(gh pr diff --name-only --color never ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ')
3232
fi

0 commit comments

Comments
 (0)