From 7b0668cf0d12511dfc2d7e20aafbf862c3e91e0c Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Wed, 17 Apr 2024 07:47:07 -0500 Subject: [PATCH] [1.7] Fix Workflow Deprecations (#9799) (#9908) --- .../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 fd926124cfd..bc7e610fa20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,10 +41,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' @@ -79,10 +79,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 }} @@ -103,7 +103,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 @@ -140,10 +140,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 }} @@ -176,13 +176,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 @@ -195,10 +195,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 ee65ff71296..15800f6e2ac 100644 --- a/.github/workflows/schema-check.yml +++ b/.github/workflows/schema-check.yml @@ -34,17 +34,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' @@ -80,7 +80,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 b78a2907c57..c92d9f23659 100644 --- a/.github/workflows/structured-logging-schema-check.yml +++ b/.github/workflows/structured-logging-schema-check.yml @@ -39,12 +39,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 }}"