From 01a1af20dbe96d2a63076089af7067f20e9c2082 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Wed, 17 Apr 2024 07:47:03 -0500 Subject: [PATCH] [1.7] Fix Workflow Deprecations (#9799) (#9909) * update to current node version * remember codecov * ensure uniquness in name --------- Co-authored-by: Kshitij Aranke # Conflicts: # .github/actions/latest-wrangler/examples/example_workflow.yml # .github/workflows/main.yml # .github/workflows/model_performance.yml # .github/workflows/schema-check.yml --- .../examples/example_workflow.yml | 2 +- .github/workflows/main.yml | 24 +++++++++---------- .github/workflows/nightly-release.yml | 2 +- .github/workflows/release-docker.yml | 2 +- .github/workflows/schema-check.yml | 8 +++---- .../structured-logging-schema-check.yml | 4 ++-- .github/workflows/test-repeater.yml | 4 ++-- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/actions/latest-wrangler/examples/example_workflow.yml b/.github/actions/latest-wrangler/examples/example_workflow.yml index 66b171c434b..da071d30265 100644 --- a/.github/actions/latest-wrangler/examples/example_workflow.yml +++ b/.github/actions/latest-wrangler/examples/example_workflow.yml @@ -13,7 +13,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Wrangle latest tag id: is_latest uses: ./.github/actions/latest-wrangler diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dbdfc318744..c6236222546 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,10 +42,10 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4.3.0 + uses: actions/setup-python@v5 with: python-version: '3.8' @@ -81,10 +81,10 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4.3.0 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -105,7 +105,7 @@ jobs: CURRENT_DATE=$(date +'%Y-%m-%dT%H_%M_%S') # no colons allowed for artifacts echo "date=$CURRENT_DATE" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: name: unit_results_${{ matrix.python-version }}-${{ steps.date.outputs.date }}.csv @@ -143,10 +143,10 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4.3.0 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -179,13 +179,13 @@ jobs: CURRENT_DATE=$(date +'%Y-%m-%dT%H_%M_%S') # no colons allowed for artifacts echo "date=$CURRENT_DATE" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: - name: logs_${{ matrix.python-version }}_${{ matrix.os }}_${{ steps.date.outputs.date }} + name: logs_${{ matrix.python-version }}_${{ matrix.os }}_${{ matrix.split-group }}_${{ steps.date.outputs.date }} path: ./logs - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: name: integration_results_${{ matrix.python-version }}_${{ matrix.os }}_${{ steps.date.outputs.date }}.csv @@ -198,10 +198,10 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4.3.0 + uses: actions/setup-python@v5 with: python-version: '3.8' diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index b668d62eccf..50141b0223f 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -39,7 +39,7 @@ jobs: steps: - name: "Checkout ${{ github.repository }} Branch ${{ env.RELEASE_BRANCH }}" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ env.RELEASE_BRANCH }} diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index ae83eb5f8a3..c4d956ddba5 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -36,7 +36,7 @@ jobs: latest: ${{ steps.latest.outputs.latest }} minor_latest: ${{ steps.latest.outputs.minor_latest }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Split version id: version run: | diff --git a/.github/workflows/schema-check.yml b/.github/workflows/schema-check.yml index 44c641c5718..7756b8ca765 100644 --- a/.github/workflows/schema-check.yml +++ b/.github/workflows/schema-check.yml @@ -37,17 +37,17 @@ jobs: steps: - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Checkout dbt repo - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 with: path: ${{ env.DBT_REPO_DIRECTORY }} - name: Checkout schemas.getdbt.com repo - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 with: repository: dbt-labs/schemas.getdbt.com ref: 'main' @@ -83,7 +83,7 @@ jobs: fi - name: Upload schema diff - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v4 if: ${{ failure() }} with: name: 'schema_schanges.txt' diff --git a/.github/workflows/structured-logging-schema-check.yml b/.github/workflows/structured-logging-schema-check.yml index bd170082111..cdd41b232a9 100644 --- a/.github/workflows/structured-logging-schema-check.yml +++ b/.github/workflows/structured-logging-schema-check.yml @@ -37,12 +37,12 @@ jobs: steps: - name: checkout dev - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" diff --git a/.github/workflows/test-repeater.yml b/.github/workflows/test-repeater.yml index e414792140c..dedaadd2097 100644 --- a/.github/workflows/test-repeater.yml +++ b/.github/workflows/test-repeater.yml @@ -83,12 +83,12 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.branch }} - name: "Setup Python" - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "${{ inputs.python_version }}"