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
9 changed files with 14 additions and 28 deletions

View File

@@ -38,9 +38,8 @@ jobs:
queries: +security-extended queries: +security-extended
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Build project
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Build release binaries
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View File

@@ -18,9 +18,8 @@ jobs:
java-version: 18 java-version: 18
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Upload binaries
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Build release app
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View File

@@ -53,9 +53,8 @@ jobs:
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Initialize git config and commit changes
shell: bash shell: bash

View File

@@ -51,9 +51,8 @@ jobs:
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Check codestyle
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Run unit tests
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Build debug APKs
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Check library API
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Run Lint on debug variants
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Run Lint
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 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 run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Run checks
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View File

@@ -18,9 +18,8 @@ jobs:
java-version: 18 java-version: 18
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Download new translations from Crowdin
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2

View File

@@ -18,9 +18,8 @@ jobs:
java-version: 18 java-version: 18
- name: Accept all SDK licenses - name: Accept all SDK licenses
continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error
shell: bash 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 - name: Download new publicsuffix data
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2