fix(github): force-accept all Android SDK licenses

This commit is contained in:
Harsh Shandilya 2023-05-20 15:05:47 +05:30
parent 0d09db3d76
commit e96f816501
No known key found for this signature in database
8 changed files with 65 additions and 0 deletions

View file

@ -37,6 +37,11 @@ jobs:
tools: latest
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
- name: Build project
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:

View file

@ -26,6 +26,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Build release binaries
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:

View file

@ -17,6 +17,11 @@ jobs:
distribution: temurin
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
- name: Upload binaries
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:

View file

@ -37,6 +37,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Build release app
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
env:

View file

@ -52,6 +52,11 @@ jobs:
with:
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
- name: Initialize git config and commit changes
shell: bash
run: |

View file

@ -50,6 +50,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Check codestyle
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:
@ -81,6 +86,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Run unit tests
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:
@ -119,6 +129,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Build debug APKs
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:
@ -150,6 +165,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Check library API
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:
@ -181,6 +201,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Run Lint on debug variants
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:
@ -212,6 +237,11 @@ jobs:
- name: Copy CI gradle.properties
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
- name: Run Lint
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:

View file

@ -17,6 +17,11 @@ jobs:
distribution: temurin
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
- name: Download new translations from Crowdin
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with:

View file

@ -17,6 +17,11 @@ jobs:
distribution: temurin
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
- name: Download new publicsuffix data
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with: