diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-05-20 15:05:47 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-05-20 23:50:39 +0530 |
commit | e96f8165016a4279a9bb0323538004e4bbeaeb02 (patch) | |
tree | 49e4b13ed73c2f7f0cfd3337f50d7e50a037b092 /.github | |
parent | 0d09db3d7667bbc5bbb885de3e8f5dba9d285700 (diff) |
fix(github): force-accept all Android SDK licenses
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/codeql_analysis.yml | 5 | ||||
-rw-r--r-- | .github/workflows/deploy_github_releases.yml | 5 | ||||
-rw-r--r-- | .github/workflows/deploy_library_releases.yml | 5 | ||||
-rw-r--r-- | .github/workflows/deploy_snapshot.yml | 5 | ||||
-rw-r--r-- | .github/workflows/draft_new_release.yml | 5 | ||||
-rw-r--r-- | .github/workflows/pull_request.yml | 30 | ||||
-rw-r--r-- | .github/workflows/sync_crowdin.yml | 5 | ||||
-rw-r--r-- | .github/workflows/update_publicsuffix_data.yml | 5 |
8 files changed, 65 insertions, 0 deletions
diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml index c859b007..e80df0b1 100644 --- a/.github/workflows/codeql_analysis.yml +++ b/.github/workflows/codeql_analysis.yml @@ -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: diff --git a/.github/workflows/deploy_github_releases.yml b/.github/workflows/deploy_github_releases.yml index f5f8d3da..e2e2c503 100644 --- a/.github/workflows/deploy_github_releases.yml +++ b/.github/workflows/deploy_github_releases.yml @@ -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: diff --git a/.github/workflows/deploy_library_releases.yml b/.github/workflows/deploy_library_releases.yml index ddb61b6f..8a485d1c 100644 --- a/.github/workflows/deploy_library_releases.yml +++ b/.github/workflows/deploy_library_releases.yml @@ -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: diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml index 7aa932f1..e8f86716 100644 --- a/.github/workflows/deploy_snapshot.yml +++ b/.github/workflows/deploy_snapshot.yml @@ -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: diff --git a/.github/workflows/draft_new_release.yml b/.github/workflows/draft_new_release.yml index 26f0cde5..8f34d69a 100644 --- a/.github/workflows/draft_new_release.yml +++ b/.github/workflows/draft_new_release.yml @@ -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: | diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8978f14c..d7039010 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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: diff --git a/.github/workflows/sync_crowdin.yml b/.github/workflows/sync_crowdin.yml index a2b0d07f..0cbc3c0a 100644 --- a/.github/workflows/sync_crowdin.yml +++ b/.github/workflows/sync_crowdin.yml @@ -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: diff --git a/.github/workflows/update_publicsuffix_data.yml b/.github/workflows/update_publicsuffix_data.yml index acfc305c..cd7b2e70 100644 --- a/.github/workflows/update_publicsuffix_data.yml +++ b/.github/workflows/update_publicsuffix_data.yml @@ -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: |