summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-05-22 23:46:05 +0530
committerGitHub <noreply@github.com>2023-05-22 23:46:05 +0530
commit4a26689a93fe623a4a4e4705d69d24f9b328fea1 (patch)
tree40df1f330abe66cab287af0721f9e1b54fd81b23 /.github/workflows
parente682b14cf2f7185e2b5a0551f034a85026005b2c (diff)
fix(github): use a different workaround for broken pipes
This variant avoids false-positive error annotations
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/codeql_analysis.yml3
-rw-r--r--.github/workflows/deploy_github_releases.yml3
-rw-r--r--.github/workflows/deploy_library_releases.yml3
-rw-r--r--.github/workflows/deploy_snapshot.yml3
-rw-r--r--.github/workflows/draft_new_release.yml3
-rw-r--r--.github/workflows/pull_request.yml18
-rw-r--r--.github/workflows/shadow_job.yml3
-rw-r--r--.github/workflows/sync_crowdin.yml3
-rw-r--r--.github/workflows/update_publicsuffix_data.yml3
9 files changed, 14 insertions, 28 deletions
diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml
index e80df0b1..02986f1c 100644
--- a/.github/workflows/codeql_analysis.yml
+++ b/.github/workflows/codeql_analysis.yml
@@ -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
diff --git a/.github/workflows/deploy_github_releases.yml b/.github/workflows/deploy_github_releases.yml
index e2e2c503..c06f28ce 100644
--- a/.github/workflows/deploy_github_releases.yml
+++ b/.github/workflows/deploy_github_releases.yml
@@ -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
diff --git a/.github/workflows/deploy_library_releases.yml b/.github/workflows/deploy_library_releases.yml
index 8a485d1c..4357e344 100644
--- a/.github/workflows/deploy_library_releases.yml
+++ b/.github/workflows/deploy_library_releases.yml
@@ -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
diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml
index e8f86716..6fcf49fc 100644
--- a/.github/workflows/deploy_snapshot.yml
+++ b/.github/workflows/deploy_snapshot.yml
@@ -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
diff --git a/.github/workflows/draft_new_release.yml b/.github/workflows/draft_new_release.yml
index 8f34d69a..a0de05f2 100644
--- a/.github/workflows/draft_new_release.yml
+++ b/.github/workflows/draft_new_release.yml
@@ -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
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
diff --git a/.github/workflows/shadow_job.yml b/.github/workflows/shadow_job.yml
index 1bba3d0a..bd3d8f4f 100644
--- a/.github/workflows/shadow_job.yml
+++ b/.github/workflows/shadow_job.yml
@@ -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
diff --git a/.github/workflows/sync_crowdin.yml b/.github/workflows/sync_crowdin.yml
index 0cbc3c0a..c5f58d7e 100644
--- a/.github/workflows/sync_crowdin.yml
+++ b/.github/workflows/sync_crowdin.yml
@@ -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
diff --git a/.github/workflows/update_publicsuffix_data.yml b/.github/workflows/update_publicsuffix_data.yml
index cd7b2e70..358152c5 100644
--- a/.github/workflows/update_publicsuffix_data.yml
+++ b/.github/workflows/update_publicsuffix_data.yml
@@ -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