Unverified Commit 08f33e02 authored by Zelda Hessler's avatar Zelda Hessler Committed by GitHub
Browse files

Update GitHub actions to fix deprecation warning (#3497)

Our workflows used outdated actions and that was causing deprecation
warnings for Node v16. Those annoyed me so I updated everything.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 87d6e978
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ inputs:
runs:
  using: composite
  steps:
  - uses: actions/cache@v3
  - uses: actions/cache@v4
    name: Gradle Cache
    with:
      path: |
@@ -24,8 +24,8 @@ runs:
      key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/caches/**/*', 'gradle/wrapper/**/*') }}
      restore-keys: |
        ${{ runner.os }}-gradle-
    # Pinned to the commit hash of v2.1.0
  - uses: Swatinem/rust-cache@b894d59a8d236e2979b247b80dac8d053ab340dd
    # Pinned to the commit hash of v2.7.3
  - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84
    with:
      shared-key: ${{ runner.os }}-${{ github.job }}
      workspaces: |
@@ -60,7 +60,7 @@ runs:
      ./smithy-rs/tools/ci-build/ci-action ${{ inputs.action }} ${{ inputs.action-arguments}}
      tar cfz artifacts-${{ inputs.action }}.tar.gz -C artifacts .
  - name: Upload artifacts
    uses: actions/upload-artifact@v3
    uses: actions/upload-artifact@v4
    with:
      name: artifacts-${{ inputs.action }}
      path: artifacts-${{ inputs.action }}.tar.gz
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ runs:
  using: composite
  steps:
  - name: Download artifacts
    uses: actions/download-artifact@v3
    uses: actions/download-artifact@v4
  - name: Untar artifacts
    shell: bash
    run: find . -maxdepth 2 -iname 'artifacts-*.tar.gz' -print -exec tar xfz {} \;
+2 −2
Original line number Diff line number Diff line
@@ -30,9 +30,9 @@ jobs:
      contents: read
    steps:
    - name: Checkout
      uses: actions/checkout@v3
      uses: actions/checkout@v4
    - name: Acquire credentials
      uses: aws-actions/configure-aws-credentials@v2.2.0
      uses: aws-actions/configure-aws-credentials@v4
      with:
        role-to-assume: ${{ secrets.SMITHY_RS_PUBLIC_ECR_PUSH_ROLE_ARN }}
        role-session-name: GitHubActions
+3 −3
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ jobs:
    runs-on: ubuntu-latest
    steps:
    - name: Attempt to load a docker login password
      uses: aws-actions/configure-aws-credentials@v2.2.0
      uses: aws-actions/configure-aws-credentials@v4
      with:
        role-to-assume: ${{ secrets.SMITHY_RS_PUBLIC_ECR_PUSH_ROLE_ARN }}
        role-session-name: GitHubActions
@@ -58,7 +58,7 @@ jobs:
      id-token: write
      contents: read
    steps:
    - uses: actions/checkout@v3
    - uses: actions/checkout@v4
      with:
        path: smithy-rs
    - name: Acquire base image
@@ -67,7 +67,7 @@ jobs:
        DOCKER_BUILDKIT: 1
      run: ./smithy-rs/.github/scripts/acquire-build-image
    - name: Acquire credentials
      uses: aws-actions/configure-aws-credentials@v2.2.0
      uses: aws-actions/configure-aws-credentials@v4
      with:
        role-to-assume: ${{ secrets.SMITHY_RS_PUBLIC_ECR_PUSH_ROLE_ARN }}
        role-session-name: GitHubActions
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ jobs:
    if: ${{ github.event.pull_request.head.repo.full_name != 'smithy-lang/smithy-rs' }}
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/checkout@v4
      with:
        path: smithy-rs
    - name: Acquire base image
@@ -30,7 +30,7 @@ jobs:
        DOCKER_BUILDKIT: 1
      run: ./smithy-rs/.github/scripts/acquire-build-image
    - name: Upload base image
      uses: actions/upload-artifact@v3
      uses: actions/upload-artifact@v4
      with:
        name: smithy-rs-base-image
        path: smithy-rs-base-image
Loading