From 7fbeced315ebd11ff0419fc10624ddd4f6324193 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 15 May 2023 15:28:52 -0500 Subject: [PATCH] updates for github deprecations (#7614) * updates for github deprecations * fix jira file name * swap out abandonded action * add quotes to env var * revert main.yml --- .github/workflows/backport.yml | 2 +- .github/workflows/bot-changelog.yml | 2 +- .github/workflows/jira-creation.yml | 2 +- .github/workflows/jira-label.yml | 2 +- .github/workflows/jira-transition.yml | 2 +- .github/workflows/release-docker.yml | 12 ++++++------ .../workflows/structured-logging-schema-check.yml | 4 ++-- .github/workflows/triage-labels.yml | 13 +++++-------- 8 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index d5c7fffed59..1cbfb7a66a0 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -35,6 +35,6 @@ jobs: github.event.pull_request.merged && contains(github.event.label.name, 'backport') steps: - - uses: tibdex/backport@v2.0.2 + - uses: tibdex/backport@v2.0.3 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/bot-changelog.yml b/.github/workflows/bot-changelog.yml index c6d2a1507a3..07e978d6229 100644 --- a/.github/workflows/bot-changelog.yml +++ b/.github/workflows/bot-changelog.yml @@ -50,7 +50,7 @@ jobs: - name: Create and commit changelog on bot PR if: ${{ contains(github.event.pull_request.labels.*.name, matrix.label) }} id: bot_changelog - uses: emmyoop/changie_bot@v1.0.1 + uses: emmyoop/changie_bot@v1.1.0 with: GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} commit_author_name: "Github Build Bot" diff --git a/.github/workflows/jira-creation.yml b/.github/workflows/jira-creation.yml index b4016befce0..2c6af71b76c 100644 --- a/.github/workflows/jira-creation.yml +++ b/.github/workflows/jira-creation.yml @@ -19,7 +19,7 @@ permissions: jobs: call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-creation.yml@main + uses: dbt-labs/actions/.github/workflows/jira-creation-actions.yml@main secrets: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} diff --git a/.github/workflows/jira-label.yml b/.github/workflows/jira-label.yml index 3da2e3a3867..b39349170b4 100644 --- a/.github/workflows/jira-label.yml +++ b/.github/workflows/jira-label.yml @@ -19,7 +19,7 @@ permissions: jobs: call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-label.yml@main + uses: dbt-labs/actions/.github/workflows/jira-label-actions.yml@main secrets: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} diff --git a/.github/workflows/jira-transition.yml b/.github/workflows/jira-transition.yml index 23e2dc8a996..1ea62467980 100644 --- a/.github/workflows/jira-transition.yml +++ b/.github/workflows/jira-transition.yml @@ -20,7 +20,7 @@ permissions: read-all jobs: call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-transition.yml@main + uses: dbt-labs/actions/.github/workflows/jira-transition-actions.yml@main secrets: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index f7b8dc29543..ae83eb5f8a3 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@v1 + - uses: actions/checkout@v3 - name: Split version id: version run: | @@ -60,7 +60,7 @@ jobs: needs: [get_version_meta] steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 build_and_push: name: Build images and push to GHCR @@ -76,14 +76,14 @@ jobs: echo "build_arg_value=$BUILD_ARG_VALUE" >> $GITHUB_OUTPUT - name: Log in to the GHCR - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push MAJOR.MINOR.PATCH tag - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: file: docker/Dockerfile push: True @@ -94,7 +94,7 @@ jobs: ghcr.io/dbt-labs/${{ github.event.inputs.package }}:${{ github.event.inputs.version_number }} - name: Build and push MINOR.latest tag - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 if: ${{ needs.get_version_meta.outputs.minor_latest == 'True' }} with: file: docker/Dockerfile @@ -106,7 +106,7 @@ jobs: ghcr.io/dbt-labs/${{ github.event.inputs.package }}:${{ needs.get_version_meta.outputs.major }}.${{ needs.get_version_meta.outputs.minor }}.latest - name: Build and push latest tag - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 if: ${{ needs.get_version_meta.outputs.latest == 'True' }} with: file: docker/Dockerfile diff --git a/.github/workflows/structured-logging-schema-check.yml b/.github/workflows/structured-logging-schema-check.yml index f4d7239a2de..0380bdb08e0 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@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Python - uses: actions/setup-python@v2.2.2 + uses: actions/setup-python@v4 with: python-version: "3.8" diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml index a71dc5e1f74..97649a5223c 100644 --- a/.github/workflows/triage-labels.yml +++ b/.github/workflows/triage-labels.yml @@ -23,11 +23,8 @@ permissions: jobs: triage_label: - if: contains(github.event.issue.labels.*.name, 'awaiting_response') - runs-on: ubuntu-latest - steps: - - name: initial labeling - uses: andymckay/labeler@master - with: - add-labels: "triage" - remove-labels: "awaiting_response" + uses: dbt-labs/actions/.github/workflows/swap-labels.yml@main + with: + add_label: "triage" + remove_label: "awaiting_response" + secrets: inherit # this is only acceptable because we own the action we're calling