From ebe54a13eaec982daa5f59e094095da7f9a2377e Mon Sep 17 00:00:00 2001 From: David Bloss Date: Fri, 5 May 2023 14:00:39 -0500 Subject: [PATCH] update used gh actions ahead of set-output, node12 deprecation (#580) * update used gh actions ahead of set-output, node12 deprecation * add changie log * remove unneeded changelog * Fix for changie that pointed to spark (#584) --------- Co-authored-by: Neelesh Salian --- .github/workflows/integration.yml | 14 +++++++------- .github/workflows/main-branch-tests.yml | 2 +- .github/workflows/main.yml | 12 ++++++------ .github/workflows/release-branch-tests.yml | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 17b8a132b..7b9280fb3 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -62,13 +62,13 @@ jobs: steps: - name: Check out the repository (non-PR) if: github.event_name != 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Check out the repository (PR) if: github.event_name == 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false ref: ${{ github.event.pull_request.head.sha }} @@ -92,7 +92,7 @@ jobs: - 'dev-requirements.txt' - name: Generate integration test matrix id: generate-matrix - uses: actions/github-script@v4 + uses: actions/github-script@v6 env: CHANGES: ${{ steps.get-changes.outputs.changes }} with: @@ -129,7 +129,7 @@ jobs: steps: - name: Check out the repository if: github.event_name != 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -137,7 +137,7 @@ jobs: # this is necessary for the `pull_request_target` event - name: Check out the repository (PR) if: github.event_name == 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false ref: ${{ github.event.pull_request.head.sha }} @@ -174,7 +174,7 @@ jobs: DBT_TEST_USER_3: dbt_test_role_3 run: tox - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: always() with: name: logs @@ -185,7 +185,7 @@ jobs: id: date run: echo "date=$(date +'%Y-%m-%dT%H_%M_%S')" >> $GITHUB_OUTPUT #no colons allowed for artifacts - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: always() with: name: integration_results_${{ matrix.python-version }}_${{ matrix.os }}_${{ matrix.adapter }}-${{ steps.date.outputs.date }}.csv diff --git a/.github/workflows/main-branch-tests.yml b/.github/workflows/main-branch-tests.yml index fcf69d027..2f245e2c2 100644 --- a/.github/workflows/main-branch-tests.yml +++ b/.github/workflows/main-branch-tests.yml @@ -48,7 +48,7 @@ jobs: token: ${{ secrets.FISHTOWN_BOT_PAT }} - name: Post failure to Slack - uses: ravsamhq/notify-slack-action@v1 + uses: ravsamhq/notify-slack-action@v2 if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} with: status: ${{ job.status }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30f580b5d..8c067fdab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -80,7 +80,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -104,7 +104,7 @@ jobs: id: date run: echo "date=$(date +'%Y-%m-%dT%H_%M_%S')" >> $GITHUB_OUTPUT #no colons allowed for artifacts - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: always() with: name: unit_results_${{ matrix.python-version }}-${{ steps.date.outputs.date }}.csv @@ -120,7 +120,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -156,7 +156,7 @@ jobs: if [[ "$(ls -lh dist/)" == *"a1"* ]]; then export is_alpha=1; fi echo "is_alpha=$is_alpha" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: dist path: dist/ @@ -188,7 +188,7 @@ jobs: python -m pip install --upgrade wheel python -m pip --version - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: dist path: dist/ diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index dde3ba4b1..15e776978 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.FISHTOWN_BOT_PAT }} - name: Post failure to Slack - uses: ravsamhq/notify-slack-action@v1 + uses: ravsamhq/notify-slack-action@v2 if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} with: status: ${{ job.status }}