From e3ac2ac32a18858541058353becdc51fa2aa9771 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 08:04:09 -0500 Subject: [PATCH 01/18] fix overlooked node12 case with abandonded marketplace action --- .github/workflows/jira-creation.yml | 2 +- .github/workflows/jira-transition.yml | 2 +- .github/workflows/main.yml | 1 + .github/workflows/release-branch-tests.yml | 6 +----- .github/workflows/triage-labels.yml | 1 + 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/jira-creation.yml b/.github/workflows/jira-creation.yml index 2c6af71b76c..79936a93a85 100644 --- a/.github/workflows/jira-creation.yml +++ b/.github/workflows/jira-creation.yml @@ -18,7 +18,7 @@ permissions: issues: write jobs: - call-label-action: + call-creation-action: uses: dbt-labs/actions/.github/workflows/jira-creation-actions.yml@main secrets: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} diff --git a/.github/workflows/jira-transition.yml b/.github/workflows/jira-transition.yml index 1ea62467980..563d8197a8a 100644 --- a/.github/workflows/jira-transition.yml +++ b/.github/workflows/jira-transition.yml @@ -19,7 +19,7 @@ on: permissions: read-all jobs: - call-label-action: + call-transition-action: uses: dbt-labs/actions/.github/workflows/jira-transition-actions.yml@main secrets: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13274dbcd61..15f817d252d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,7 @@ on: - "releases/*" pull_request: workflow_dispatch: + workflow_call: permissions: read-all diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 101e08a7535..1981d6b075e 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -72,11 +72,7 @@ jobs: steps: - name: Call CI workflow for ${{ matrix.branch }} branch id: trigger-step - uses: aurelien-baudet/workflow-dispatch@v2 - with: - workflow: main.yml - ref: ${{ matrix.branch }} - token: ${{ secrets.FISHTOWN_BOT_PAT }} + uses: dbt-labs/dbt-core/.github/workflows/main.yml@${{ matrix.branch }} - name: Post failure to Slack uses: ravsamhq/notify-slack-action@v2 diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml index 97649a5223c..6b866e81b6e 100644 --- a/.github/workflows/triage-labels.yml +++ b/.github/workflows/triage-labels.yml @@ -22,6 +22,7 @@ permissions: issues: write jobs: + if: contains(github.event.issue.labels.*.name, 'awaiting_response') triage_label: uses: dbt-labs/actions/.github/workflows/swap-labels.yml@main with: From 30956b890ab88d331440c0957e2007f56873768f Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 08:16:02 -0500 Subject: [PATCH 02/18] update slack notification --- .github/workflows/release-branch-tests.yml | 35 ++++++++++------------ 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 1981d6b075e..6fef64b5843 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -59,28 +59,25 @@ jobs: runs-on: ubuntu-latest strategy: - # must run CI 1 branch at a time b/c the workflow-dispatch Action polls for - # latest run for results and it gets confused when we kick off multiple runs - # at once. There is a race condition so we will just run in sequential order. - max-parallel: 1 fail-fast: false matrix: branch: ${{ fromJSON(needs.fetch-latest-branches.outputs.latest-branches) }} include: - branch: 'main' - steps: - - name: Call CI workflow for ${{ matrix.branch }} branch - id: trigger-step - uses: dbt-labs/dbt-core/.github/workflows/main.yml@${{ matrix.branch }} - - - name: Post failure to Slack - uses: ravsamhq/notify-slack-action@v2 - if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} - with: - status: ${{ job.status }} - notification_title: 'dbt-core scheduled run of "${{ matrix.branch }}" branch not successful' - message_format: ':x: CI on branch "${{ matrix.branch }}" ${{ steps.trigger-step.outputs.workflow-conclusion }}' - footer: 'Linked failed CI run ${{ steps.trigger-step.outputs.workflow-url }}' - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }} + uses: dbt-labs/dbt-core/.github/workflows/main.yml@${{ matrix.branch }} + + slack-notification: + name: Slack Notification + if: ${{ failure() && github.event_name == 'schedule' }} + + needs: + [kick-off-ci] + + uses: dbt-labs/dbt-release/.github/workflows/slack-post-notification.yml@main + with: + status: "failure" + notification_title: "Scheduled Release Branch Tests Status" + + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }} From 45f8a2c14365c7f6b94a780cfa35283ffe720c63 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 08:17:11 -0500 Subject: [PATCH 03/18] remove spaces per formatting --- .github/workflows/release-branch-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 6fef64b5843..4513ce04ec5 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -65,7 +65,7 @@ jobs: include: - branch: 'main' - uses: dbt-labs/dbt-core/.github/workflows/main.yml@${{ matrix.branch }} + uses: dbt-labs/dbt-core/.github/workflows/main.yml@${{matrix.branch}} slack-notification: name: Slack Notification From 71fdc0029b8d82562bcc5ca79ee48a85007f8804 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 08:31:00 -0500 Subject: [PATCH 04/18] replace with cli dispatch --- .github/workflows/release-branch-tests.yml | 36 ++++++++++++---------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 4513ce04ec5..27099a93a9d 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -59,25 +59,29 @@ jobs: runs-on: ubuntu-latest strategy: + # must run CI 1 branch at a time b/c the workflow-dispatch Action polls for + # latest run for results and it gets confused when we kick off multiple runs + # at once. There is a race condition so we will just run in sequential order. + max-parallel: 1 fail-fast: false matrix: branch: ${{ fromJSON(needs.fetch-latest-branches.outputs.latest-branches) }} include: - branch: 'main' - uses: dbt-labs/dbt-core/.github/workflows/main.yml@${{matrix.branch}} - - slack-notification: - name: Slack Notification - if: ${{ failure() && github.event_name == 'schedule' }} - - needs: - [kick-off-ci] - - uses: dbt-labs/dbt-release/.github/workflows/slack-post-notification.yml@main - with: - status: "failure" - notification_title: "Scheduled Release Branch Tests Status" - - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }} + steps: + - name: Call CI workflow for ${{ matrix.branch }} branch + id: trigger-step + run: | + gh workflow run main.yml --ref ${{ matrix.branch }} + + - name: Post failure to Slack + uses: ravsamhq/notify-slack-action@v2 + if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} + with: + status: ${{ job.status }} + notification_title: 'dbt-core scheduled run of "${{ matrix.branch }}" branch not successful' + message_format: ':x: CI on branch "${{ matrix.branch }}" ${{ steps.trigger-step.outputs.workflow-conclusion }}' + footer: 'Linked failed CI run ${{ steps.trigger-step.outputs.workflow-url }}' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }} From 16bef4ace6ad9fba555d66dcfdf73a44aae89efd Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 08:33:39 -0500 Subject: [PATCH 05/18] move conditional --- .github/workflows/triage-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml index 6b866e81b6e..91f529e3e09 100644 --- a/.github/workflows/triage-labels.yml +++ b/.github/workflows/triage-labels.yml @@ -22,8 +22,8 @@ permissions: issues: write jobs: - if: contains(github.event.issue.labels.*.name, 'awaiting_response') triage_label: + if: contains(github.event.issue.labels.*.name, 'awaiting_response') uses: dbt-labs/actions/.github/workflows/swap-labels.yml@main with: add_label: "triage" From 85ef8aa3167b1ae841b69fb5bdc05dbbd048f0e2 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 09:04:29 -0500 Subject: [PATCH 06/18] add explicit token, temp comment out slack --- .github/workflows/release-branch-tests.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 27099a93a9d..8eaa500419c 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -74,14 +74,16 @@ jobs: id: trigger-step run: | gh workflow run main.yml --ref ${{ matrix.branch }} - - - name: Post failure to Slack - uses: ravsamhq/notify-slack-action@v2 - if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} - with: - status: ${{ job.status }} - notification_title: 'dbt-core scheduled run of "${{ matrix.branch }}" branch not successful' - message_format: ':x: CI on branch "${{ matrix.branch }}" ${{ steps.trigger-step.outputs.workflow-conclusion }}' - footer: 'Linked failed CI run ${{ steps.trigger-step.outputs.workflow-url }}' env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }} + GH_TOKEN: ${{ github.token }} + + # - name: Post failure to Slack + # uses: ravsamhq/notify-slack-action@v2 + # if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} + # with: + # status: ${{ job.status }} + # notification_title: 'dbt-core scheduled run of "${{ matrix.branch }}" branch not successful' + # message_format: ':x: CI on branch "${{ matrix.branch }}" ${{ steps.trigger-step.outputs.workflow-conclusion }}' + # footer: 'Linked failed CI run ${{ steps.trigger-step.outputs.workflow-url }}' + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }} From bab5b3e46e2d8b6161810745a6f4986430f5c33e Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 09:12:22 -0500 Subject: [PATCH 07/18] add checkout --- .github/workflows/release-branch-tests.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 8eaa500419c..7df68f712f6 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -70,12 +70,15 @@ jobs: - branch: 'main' steps: - - name: Call CI workflow for ${{ matrix.branch }} branch - id: trigger-step - run: | - gh workflow run main.yml --ref ${{ matrix.branch }} - env: - GH_TOKEN: ${{ github.token }} + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Call CI workflow for ${{ matrix.branch }} branch + id: trigger-step + run: | + gh workflow run main.yml --ref ${{ matrix.branch }} + env: + GH_TOKEN: ${{ github.token }} # - name: Post failure to Slack # uses: ravsamhq/notify-slack-action@v2 From 96de124acd61aef7a8c4cd5439922773becb174c Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 09:18:02 -0500 Subject: [PATCH 08/18] checkout teh right branch --- .github/workflows/release-branch-tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 7df68f712f6..4ce719a4408 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -70,8 +70,10 @@ jobs: - branch: 'main' steps: - - name: Check out the repository + - name: Check out ${{ matrix.branch }} uses: actions/checkout@v3 + with: + ref: ${{ matrix.branch }} - name: Call CI workflow for ${{ matrix.branch }} branch id: trigger-step From b9ade25afa1e5bd96fcaf5b406784da15175ca28 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 09:24:14 -0500 Subject: [PATCH 09/18] switch to PAT --- .github/workflows/release-branch-tests.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 4ce719a4408..500019651f8 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -70,17 +70,12 @@ jobs: - branch: 'main' steps: - - name: Check out ${{ matrix.branch }} - uses: actions/checkout@v3 - with: - ref: ${{ matrix.branch }} - - name: Call CI workflow for ${{ matrix.branch }} branch id: trigger-step run: | gh workflow run main.yml --ref ${{ matrix.branch }} env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} # - name: Post failure to Slack # uses: ravsamhq/notify-slack-action@v2 From fa8c46886462d12067b63cf22cac5885c9e18e1d Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 09:25:49 -0500 Subject: [PATCH 10/18] add back repo checkout --- .github/workflows/release-branch-tests.yml | 5 +++++ .github/workflows/triage-labels.yml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 500019651f8..8738b47c77e 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -70,6 +70,11 @@ jobs: - branch: 'main' steps: + - name: Check out ${{ matrix.branch }} + uses: actions/checkout@v3 + with: + ref: ${{ matrix.branch }} + - name: Call CI workflow for ${{ matrix.branch }} branch id: trigger-step run: | diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml index 91f529e3e09..5fac06d85da 100644 --- a/.github/workflows/triage-labels.yml +++ b/.github/workflows/triage-labels.yml @@ -28,4 +28,5 @@ jobs: with: add_label: "triage" remove_label: "awaiting_response" - secrets: inherit # this is only acceptable because we own the action we're calling + secrets: + GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} From 0d544a73967b443a2b7ae5fab5dfef2500b467cc Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 11:38:01 -0500 Subject: [PATCH 11/18] manually check workflow status --- .github/workflows/release-branch-tests.yml | 27 +++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 8738b47c77e..5236100ef7d 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -59,7 +59,7 @@ jobs: runs-on: ubuntu-latest strategy: - # must run CI 1 branch at a time b/c the workflow-dispatch Action polls for + # must run CI 1 branch at a time b/c the workflow-dispatch polls for # latest run for results and it gets confused when we kick off multiple runs # at once. There is a race condition so we will just run in sequential order. max-parallel: 1 @@ -82,6 +82,31 @@ jobs: env: GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + - name: Get workflow run ID + id: workflow-id + run: | + table=$(gh run list --workflow=main.yml) + echo $table + id=$(echo "$table" | awk 'NR==1' | jq -Rr 'split("\t")[6]') + echo $id + echo "id=$id" >> $GITHUB_OUTPUT + env: + GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + + - name: Wait for run to complete + id: monitor-run + run: | + gh run watch ${{ steps.workflow-id.outputs.id }} && notify-send "Run for ${{ matrix.branch }} has completed" + env: + GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + + - name: Check if run was successful + id: status-check + run: | + gh run view ${{ steps.workflow-id.outputs.id }} --exit-status + env: + GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + # - name: Post failure to Slack # uses: ravsamhq/notify-slack-action@v2 # if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} From 667e837a2554d7ea1f7826b76da3bb6f7620aade Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 12:55:16 -0500 Subject: [PATCH 12/18] fix notification --- .github/workflows/release-branch-tests.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 5236100ef7d..7750cca23b0 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -96,14 +96,7 @@ jobs: - name: Wait for run to complete id: monitor-run run: | - gh run watch ${{ steps.workflow-id.outputs.id }} && notify-send "Run for ${{ matrix.branch }} has completed" - env: - GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} - - - name: Check if run was successful - id: status-check - run: | - gh run view ${{ steps.workflow-id.outputs.id }} --exit-status + gh run watch ${{ steps.workflow-id.outputs.id }} --exit-status env: GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} From b50acbb1962e8f49fa57f106ec00ab96aaceb196 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 13:18:54 -0500 Subject: [PATCH 13/18] swap to reusable workflow --- .github/workflows/release-branch-tests.yml | 93 ++-------------------- 1 file changed, 6 insertions(+), 87 deletions(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 7750cca23b0..6eb23721eaa 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -1,11 +1,7 @@ # **what?** # The purpose of this workflow is to trigger CI to run for each # release branch and main branch on a regular cadence. If the CI workflow -# fails for a branch, it will post to dev-core-alerts to raise awareness. -# The 'aurelien-baudet/workflow-dispatch' Action triggers the existing -# CI worklow file on the given branch to run so that even if we change the -# CI workflow file in the future, the one that is tailored for the given -# release branch will be used. +# fails for a branch, it will post to #dev-core-alerts to raise awareness. # **why?** # Ensures release branches and main are always shippable and not broken. @@ -28,85 +24,8 @@ on: permissions: read-all jobs: - fetch-latest-branches: - runs-on: ubuntu-latest - - outputs: - latest-branches: ${{ steps.get-latest-branches.outputs.repo-branches }} - - steps: - - name: "Fetch dbt-core Latest Branches" - uses: dbt-labs/actions/fetch-repo-branches@v1.1.1 - id: get-latest-branches - with: - repo_name: ${{ github.event.repository.name }} - organization: "dbt-labs" - pat: ${{ secrets.GITHUB_TOKEN }} - fetch_protected_branches_only: true - regex: "^1.[0-9]+.latest$" - perform_match_method: "match" - retries: 3 - - - name: "[ANNOTATION] ${{ github.event.repository.name }} - branches to test" - run: | - title="${{ github.event.repository.name }} - branches to test" - message="The workflow will run tests for the following branches of the ${{ github.event.repository.name }} repo: ${{ steps.get-latest-branches.outputs.repo-branches }}" - echo "::notice $title::$message" - - kick-off-ci: - needs: [fetch-latest-branches] - name: Kick-off CI - runs-on: ubuntu-latest - - strategy: - # must run CI 1 branch at a time b/c the workflow-dispatch polls for - # latest run for results and it gets confused when we kick off multiple runs - # at once. There is a race condition so we will just run in sequential order. - max-parallel: 1 - fail-fast: false - matrix: - branch: ${{ fromJSON(needs.fetch-latest-branches.outputs.latest-branches) }} - include: - - branch: 'main' - - steps: - - name: Check out ${{ matrix.branch }} - uses: actions/checkout@v3 - with: - ref: ${{ matrix.branch }} - - - name: Call CI workflow for ${{ matrix.branch }} branch - id: trigger-step - run: | - gh workflow run main.yml --ref ${{ matrix.branch }} - env: - GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} - - - name: Get workflow run ID - id: workflow-id - run: | - table=$(gh run list --workflow=main.yml) - echo $table - id=$(echo "$table" | awk 'NR==1' | jq -Rr 'split("\t")[6]') - echo $id - echo "id=$id" >> $GITHUB_OUTPUT - env: - GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} - - - name: Wait for run to complete - id: monitor-run - run: | - gh run watch ${{ steps.workflow-id.outputs.id }} --exit-status - env: - GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} - - # - name: Post failure to Slack - # uses: ravsamhq/notify-slack-action@v2 - # if: ${{ always() && !contains(steps.trigger-step.outputs.workflow-conclusion,'success') }} - # with: - # status: ${{ job.status }} - # notification_title: 'dbt-core scheduled run of "${{ matrix.branch }}" branch not successful' - # message_format: ':x: CI on branch "${{ matrix.branch }}" ${{ steps.trigger-step.outputs.workflow-conclusion }}' - # footer: 'Linked failed CI run ${{ steps.trigger-step.outputs.workflow-url }}' - # env: - # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }} + run_tests: + uses: dbt-labs/actions/.github/workflows.release-branch-tests.yml@er/centralize/release-branch-tests + with: + workflows_to_run: '["main.yml"]' + secrets: inherit From ecb2a852a823b213edf99fb9e4513bcc2940a760 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 18 May 2023 13:19:41 -0500 Subject: [PATCH 14/18] fix path --- .github/workflows/release-branch-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 6eb23721eaa..24b178161f1 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -25,7 +25,7 @@ permissions: read-all jobs: run_tests: - uses: dbt-labs/actions/.github/workflows.release-branch-tests.yml@er/centralize/release-branch-tests + uses: dbt-labs/actions/.github/workflows/release-branch-tests.yml@er/centralize/release-branch-tests with: workflows_to_run: '["main.yml"]' secrets: inherit From c16cee2a01222837bf689ad180c8a3886b8833de Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 22 May 2023 11:03:34 -0500 Subject: [PATCH 15/18] swap permissions --- .github/workflows/triage-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml index 5fac06d85da..51b53765000 100644 --- a/.github/workflows/triage-labels.yml +++ b/.github/workflows/triage-labels.yml @@ -29,4 +29,4 @@ jobs: add_label: "triage" remove_label: "awaiting_response" secrets: - GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + GH_TOKEN: inherit From c1240f89799f90811855ad9992fa3058d3bce3c8 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 22 May 2023 11:07:15 -0500 Subject: [PATCH 16/18] remove trigger --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15f817d252d..13274dbcd61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,6 @@ on: - "releases/*" pull_request: workflow_dispatch: - workflow_call: permissions: read-all From b1092680a9e7b387f325c5348b2e1b99a07031ab Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 22 May 2023 11:16:27 -0500 Subject: [PATCH 17/18] fix secrets --- .github/workflows/triage-labels.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml index 51b53765000..6b8d6a82f26 100644 --- a/.github/workflows/triage-labels.yml +++ b/.github/workflows/triage-labels.yml @@ -28,5 +28,4 @@ jobs: with: add_label: "triage" remove_label: "awaiting_response" - secrets: - GH_TOKEN: inherit + secrets: inherit From d84c6e455591d947a5f88ad9203c65d0ded132c3 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Fri, 26 May 2023 14:06:15 -0500 Subject: [PATCH 18/18] point to main --- .github/workflows/release-branch-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-tests.yml b/.github/workflows/release-branch-tests.yml index 24b178161f1..8e8b13701df 100644 --- a/.github/workflows/release-branch-tests.yml +++ b/.github/workflows/release-branch-tests.yml @@ -25,7 +25,7 @@ permissions: read-all jobs: run_tests: - uses: dbt-labs/actions/.github/workflows/release-branch-tests.yml@er/centralize/release-branch-tests + uses: dbt-labs/actions/.github/workflows/release-branch-tests.yml@main with: workflows_to_run: '["main.yml"]' secrets: inherit