diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-05-22 23:46:05 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 23:46:05 +0530 |
commit | 4a26689a93fe623a4a4e4705d69d24f9b328fea1 (patch) | |
tree | 40df1f330abe66cab287af0721f9e1b54fd81b23 /.github/workflows/pull_request.yml | |
parent | e682b14cf2f7185e2b5a0551f034a85026005b2c (diff) |
fix(github): use a different workaround for broken pipes
This variant avoids false-positive error annotations
Diffstat (limited to '.github/workflows/pull_request.yml')
-rw-r--r-- | .github/workflows/pull_request.yml | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d7039010..1127ad2e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -51,9 +51,8 @@ jobs: run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - name: Accept all SDK licenses - continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error shell: bash - run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + run: printf 'y\ny\ny\ny\ny\n' | $ANDROID_HOME/tools/bin/sdkmanager --licenses - name: Check codestyle uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 @@ -87,9 +86,8 @@ jobs: run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - name: Accept all SDK licenses - continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error shell: bash - run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + run: printf 'y\ny\ny\ny\ny\n' | $ANDROID_HOME/tools/bin/sdkmanager --licenses - name: Run unit tests uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 @@ -130,9 +128,8 @@ jobs: run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - name: Accept all SDK licenses - continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error shell: bash - run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + run: printf 'y\ny\ny\ny\ny\n' | $ANDROID_HOME/tools/bin/sdkmanager --licenses - name: Build debug APKs uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 @@ -166,9 +163,8 @@ jobs: run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - name: Accept all SDK licenses - continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error shell: bash - run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + run: printf 'y\ny\ny\ny\ny\n' | $ANDROID_HOME/tools/bin/sdkmanager --licenses - name: Check library API uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 @@ -202,9 +198,8 @@ jobs: run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - name: Accept all SDK licenses - continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error shell: bash - run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + run: printf 'y\ny\ny\ny\ny\n' | $ANDROID_HOME/tools/bin/sdkmanager --licenses - name: Run Lint on debug variants uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 @@ -238,9 +233,8 @@ jobs: run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - name: Accept all SDK licenses - continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error shell: bash - run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + run: printf 'y\ny\ny\ny\ny\n' | $ANDROID_HOME/tools/bin/sdkmanager --licenses - name: Run Lint uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 |