fix(github): use a different workaround for broken pipes

This variant avoids false-positive error annotations
This commit is contained in:
Harsh Shandilya 2023-05-22 23:46:05 +05:30 committed by GitHub
parent e682b14cf2
commit 4a26689a93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 28 deletions

View file

@ -38,9 +38,8 @@ jobs:
queries: +security-extended
- 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 project
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View file

@ -27,9 +27,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 release binaries
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View file

@ -18,9 +18,8 @@ jobs:
java-version: 18
- 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: Upload binaries
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View file

@ -38,9 +38,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 release app
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View file

@ -53,9 +53,8 @@ jobs:
gradle-home-cache-cleanup: true
- 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: Initialize git config and commit changes
shell: bash

View file

@ -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

View file

@ -48,9 +48,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 checks
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View file

@ -18,9 +18,8 @@ jobs:
java-version: 18
- 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: Download new translations from Crowdin
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View file

@ -18,9 +18,8 @@ jobs:
java-version: 18
- 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: Download new publicsuffix data
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2