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 tools: latest
queries: +security-extended 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 - name: Build project
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
with: with:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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