From 5e057691cf2c448bb41fa58f66cd34186aff93b9 Mon Sep 17 00:00:00 2001 From: Rohan Chhaya <67851478+rchhaya@users.noreply.github.com> Date: Tue, 7 May 2024 13:39:31 -0400 Subject: [PATCH] Trying to print errors --- .github/workflows/android-workflow.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android-workflow.yaml b/.github/workflows/android-workflow.yaml index 19b7edbc1..3fdd9bbba 100644 --- a/.github/workflows/android-workflow.yaml +++ b/.github/workflows/android-workflow.yaml @@ -149,6 +149,7 @@ jobs: with: name: reports path: PennMobile/build/reports + ktlint-check: name: Check Kotlin Code Style runs-on: ubuntu-latest @@ -170,10 +171,12 @@ jobs: - name: Run ktlint run: | - ktlint --reporter=plain > ktlint_errors.txt || true - + set -o pipefail + ktlint --reporter=plain > ktlint_errors.txt + continue-on-error: true + - name: Display ktlint errors - if: failure() + if: ${{ failure() }} run: cat ktlint_errors.txt # Publish to Firebase App Distribution