From 6dc9ee75c2e39aa56eded2ffac15af7a1d7a58d9 Mon Sep 17 00:00:00 2001 From: Dustin Lam Date: Wed, 11 Sep 2024 11:05:12 -0700 Subject: [PATCH] Migrate to actions/upload-artifact@v4 in GH v2 is now deprecated to the point where it automatically fails builds Test: GH Workflows Change-Id: I4833cae12a6927719f941ff3a31439b698a485d6 --- .github/workflows/integration_tests.yml | 2 +- .github/workflows/jbpresubmit.yml | 2 +- .github/workflows/presubmit.yml | 8 ++++---- .github/workflows/update_prebuilts.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 6e8acfd3687ac..2807743ac8d75 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -31,7 +31,7 @@ jobs: device-specs: Pixel2.arm:30 use-test-config-files: true test-suite-tags: androidx_unit_tests - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: name: outputs diff --git a/.github/workflows/jbpresubmit.yml b/.github/workflows/jbpresubmit.yml index 4c81d52dc1103..77b11b200913d 100644 --- a/.github/workflows/jbpresubmit.yml +++ b/.github/workflows/jbpresubmit.yml @@ -86,7 +86,7 @@ jobs: echo "DIST_DIR=$HOME/dist" >> $GITHUB_ENV - name: "Checkout androidx repo" - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ needs.setup.outputs.checkout_ref }} repository: ${{ needs.setup.outputs.checkout_repo }} diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index a99b1d4a512c8..cc5ffcbb19976 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -62,7 +62,7 @@ jobs: echo "DIST_DIR=$HOME/dist" >> $GITHUB_ENV - name: "Checkout androidx repo" - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: "Get changed files in push or pull_request" id: changed-files @@ -138,7 +138,7 @@ jobs: GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} steps: - name: "Checkout androidx repo" - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: "Check if the project should be built" id: check-ci-config env: @@ -164,14 +164,14 @@ jobs: - name: "Upload build artifacts" continue-on-error: true if: ${{ steps.check-ci-config.outputs.enabled == 'true' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: artifacts_${{ matrix.project }} path: ~/dist - name: "Upload daemon logs" continue-on-error: true if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: gradle-daemon-logs_${{ matrix.project }} path: ~/.gradle/daemon diff --git a/.github/workflows/update_prebuilts.yml b/.github/workflows/update_prebuilts.yml index 8a32e87ad51f4..4ad279586243e 100644 --- a/.github/workflows/update_prebuilts.yml +++ b/.github/workflows/update_prebuilts.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout androidx repo" - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: "Run update prebuilt snapshot ids script" shell: bash # this does not update metalava because it needs to match the