Skip to content

Commit

Permalink
Migrate to actions/upload-artifact@v4 in GH
Browse files Browse the repository at this point in the history
v2 is now deprecated to the point where it automatically fails builds

Test: GH Workflows
  • Loading branch information
dlam committed Sep 11, 2024
1 parent 38a3303 commit d56d445
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jbpresubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/update_prebuilts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d56d445

Please sign in to comment.