From 84446764c92363ff5d4848ffaddad438d6bd41bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Fri, 24 May 2024 14:10:20 +0000 Subject: [PATCH] Trying > for multiple lines Change-Id: I89be8171ec81617cf7e5268d65a630c01c538c7b --- .github/workflows/Build.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index ca6efa9df..4002be03d 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -308,11 +308,11 @@ jobs: profile: ${{ matrix.profile }} emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none # Run tests, if they fail, record screenshots and exit with a failure - script: | - ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests --daemon \ - || echo "Recording new screenshots" \ - ; ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests -Pdropshots.record --daemon --stacktrace \ - ; echo "Done recording new screenshots, exiting with failure" \ + script: > + ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests --daemon + || echo "Recording new screenshots" + ; ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests -Pdropshots.record --daemon --stacktrace + ; echo "Done recording new screenshots, exiting with failure" ; exit 5 - name: Prevent pushing new screenshots if this is a fork