Commit ce55d98

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2024-09-20 06:34:24
Fix PR builds (#443)
* Set up correct java version * Fix PR bot not clearing label on failure
1 parent 256c7cf
Changed files (2)
.github
.github/workflows/app-CI.yml
@@ -52,7 +52,7 @@ jobs:
         channel: ${{ env.FLUTTER_CHANNEL }}
         cache: true
     - name: Disable analytics
-      run: flutter config --no-analytics
+      run: flutter config --no-analytics --suppress-analytics
     - name: Generate mock code
       run: |
         flutter pub get
@@ -179,7 +179,13 @@ jobs:
         channel: ${{ env.FLUTTER_CHANNEL }}
         cache: true
     - name: Disable analytics
-      run: flutter config --no-analytics
+      run: flutter config --no-analytics --suppress-analytics
+    - name: Setup java
+      uses: actions/setup-java@v2
+      with:
+        java-version: "17"
+        distribution: "temurin"
+        cache: 'gradle'
     - name: Build apk
       run: flutter build apk --flavor github --debug
       working-directory: app
.github/workflows/pr.yml
@@ -44,7 +44,13 @@ jobs:
         channel: ${{ env.FLUTTER_CHANNEL }}
         cache: true
     - name: Disable analytics
-      run: flutter config --no-analytics
+      run: flutter config --no-analytics --suppress-analytics
+    - name: Setup java
+      uses: actions/setup-java@v2
+      with:
+        java-version: "17"
+        distribution: "temurin"
+        cache: 'gradle'
     - name: Build apk
       run: flutter build apk --flavor github --debug
       working-directory: app
@@ -53,6 +59,7 @@ jobs:
         name: build-results
         path: app/build/app/outputs/flutter-apk
     - uses: mondeja/remove-labels-gh-action@v2
+      if: always()
       with:
         token: ${{ secrets.GITHUB_TOKEN }}
         labels: build-apk