From fecffafa1174bd64f2e13d613aa8d90196670df1 Mon Sep 17 00:00:00 2001 From: mattromano Date: Tue, 22 Jul 2025 16:24:34 -0700 Subject: [PATCH 1/5] add-slack-alerts --- .github/workflows/dbt_run_scheduled_main.yml | 28 +++++-- .../dbt_run_streamline_chainhead.yml | 28 +++++-- macros/python/slack_alert.py | 74 +++++++++++++++++++ 3 files changed, 118 insertions(+), 12 deletions(-) create mode 100644 macros/python/slack_alert.py diff --git a/.github/workflows/dbt_run_scheduled_main.yml b/.github/workflows/dbt_run_scheduled_main.yml index c96e9a0..c88b469 100644 --- a/.github/workflows/dbt_run_scheduled_main.yml +++ b/.github/workflows/dbt_run_scheduled_main.yml @@ -44,9 +44,25 @@ jobs: run: | dbt run -m "rise_models,tag:silver_testnet" "rise_models,tag:gold_testnet" "rise_models,tag:bronze_testnet" - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_run_streamline_chainhead.yml b/.github/workflows/dbt_run_streamline_chainhead.yml index 4a39b61..02ddc57 100644 --- a/.github/workflows/dbt_run_streamline_chainhead.yml +++ b/.github/workflows/dbt_run_streamline_chainhead.yml @@ -48,9 +48,25 @@ jobs: run: | dbt test -m "rise_models,tag:chainhead" - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/macros/python/slack_alert.py b/macros/python/slack_alert.py new file mode 100644 index 0000000..4e624f7 --- /dev/null +++ b/macros/python/slack_alert.py @@ -0,0 +1,74 @@ +import requests +import os +import sys + +def create_message(): + """Creates a simple failure notification message with repo, workflow name, and URL""" + + # Get GitHub environment variables + repository = os.environ.get('GITHUB_REPOSITORY', 'Unknown repository') + repo_name = repository.split('/')[-1] if '/' in repository else repository + workflow_name = os.environ.get('GITHUB_WORKFLOW', 'Unknown workflow') + run_id = os.environ.get('GITHUB_RUN_ID', '') + server_url = os.environ.get('GITHUB_SERVER_URL', 'https://github.com') + + # Build the workflow URL + workflow_url = f"{server_url}/{repository}/actions/runs/{run_id}" + + message_body = { + "text": f"Failure in {repo_name}", + "attachments": [ + { + "color": "#f44336", # Red color for failures + "fields": [ + { + "title": "Repository", + "value": repository, + "short": True + }, + { + "title": "Workflow", + "value": workflow_name, + "short": True + } + ], + "actions": [ + { + "type": "button", + "text": "View Workflow Run", + "style": "primary", + "url": workflow_url + } + ], + "footer": "GitHub Actions" + } + ] + } + + return message_body + +def send_alert(webhook_url): + """Sends a failure notification to Slack""" + + message = create_message() + + try: + response = requests.post(webhook_url, json=message) + + if response.status_code == 200: + print("Successfully sent Slack notification") + else: + print(f"Failed to send Slack notification: {response.status_code} {response.text}") + sys.exit(1) + except Exception as e: + print(f"Error sending Slack notification: {str(e)}") + sys.exit(1) + +if __name__ == '__main__': + webhook_url = os.environ.get("SLACK_WEBHOOK_URL") + + if not webhook_url: + print("ERROR: SLACK_WEBHOOK_URL environment variable is required") + sys.exit(1) + + send_alert(webhook_url) \ No newline at end of file From e82684c61307721e614478858afb28e173da3f91 Mon Sep 17 00:00:00 2001 From: mattromano Date: Tue, 22 Jul 2025 16:28:32 -0700 Subject: [PATCH 2/5] add other workflows --- .../workflows/dbt_deploy_new_workflows.yml | 28 +++++++++++++++---- .github/workflows/dbt_docs_update.yml | 28 +++++++++++++++---- .github/workflows/dbt_integration_test.yml | 28 +++++++++++++++---- .github/workflows/dbt_run_adhoc.yml | 28 +++++++++++++++---- .../workflows/dbt_run_streamline_history.yml | 28 +++++++++++++++---- .github/workflows/dbt_test_daily.yml | 28 +++++++++++++++---- .github/workflows/dbt_test_intraday.yml | 28 +++++++++++++++---- .github/workflows/dbt_test_monthly.yml | 28 +++++++++++++++---- 8 files changed, 176 insertions(+), 48 deletions(-) diff --git a/.github/workflows/dbt_deploy_new_workflows.yml b/.github/workflows/dbt_deploy_new_workflows.yml index 6b6cd38..7f10980 100644 --- a/.github/workflows/dbt_deploy_new_workflows.yml +++ b/.github/workflows/dbt_deploy_new_workflows.yml @@ -44,9 +44,25 @@ jobs: run: | make deploy_new_github_action DBT_TARGET=prod - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_docs_update.yml b/.github/workflows/dbt_docs_update.yml index 7d4e3fd..cc9a6e4 100644 --- a/.github/workflows/dbt_docs_update.yml +++ b/.github/workflows/dbt_docs_update.yml @@ -75,9 +75,25 @@ jobs: run: | git push -f --set-upstream origin docs - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_integration_test.yml b/.github/workflows/dbt_integration_test.yml index 8f545b6..7b52ee9 100644 --- a/.github/workflows/dbt_integration_test.yml +++ b/.github/workflows/dbt_integration_test.yml @@ -33,9 +33,25 @@ jobs: warehouse: ${{ needs.prepare_vars.outputs.warehouse }} secrets: inherit - notify-failure: - needs: [called_workflow_template] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_run_adhoc.yml b/.github/workflows/dbt_run_adhoc.yml index 7455b74..48e313f 100644 --- a/.github/workflows/dbt_run_adhoc.yml +++ b/.github/workflows/dbt_run_adhoc.yml @@ -66,9 +66,25 @@ jobs: run: | ${{ inputs.dbt_command }} - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_run_streamline_history.yml b/.github/workflows/dbt_run_streamline_history.yml index 56db04f..d73bd1e 100644 --- a/.github/workflows/dbt_run_streamline_history.yml +++ b/.github/workflows/dbt_run_streamline_history.yml @@ -44,9 +44,25 @@ jobs: run: | dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "rise_models,tag:streamline_testnet_complete" "rise_models,tag:streamline_testnet_history" - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_test_daily.yml b/.github/workflows/dbt_test_daily.yml index d79b1e5..89653d8 100644 --- a/.github/workflows/dbt_test_daily.yml +++ b/.github/workflows/dbt_test_daily.yml @@ -48,9 +48,25 @@ jobs: run: | dbt test -m "fsc_evm,tag:daily_test" - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_test_intraday.yml b/.github/workflows/dbt_test_intraday.yml index 69b5df9..d821f96 100644 --- a/.github/workflows/dbt_test_intraday.yml +++ b/.github/workflows/dbt_test_intraday.yml @@ -48,9 +48,25 @@ jobs: run: | dbt test -m "fsc_evm,tag:recent_test" - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/dbt_test_monthly.yml b/.github/workflows/dbt_test_monthly.yml index 2761cef..63745c4 100644 --- a/.github/workflows/dbt_test_monthly.yml +++ b/.github/workflows/dbt_test_monthly.yml @@ -48,9 +48,25 @@ jobs: run: | dbt test -m "fsc_evm,tag:full_test" - notify-failure: - needs: [run_dbt_jobs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file From 99fb8a52378a639ea85b88783449a1b749efef99 Mon Sep 17 00:00:00 2001 From: mattromano Date: Tue, 22 Jul 2025 16:29:16 -0700 Subject: [PATCH 3/5] dev refresh --- .github/workflows/dbt_run_dev_refresh.yml | 56 ++++++++++++++++++----- 1 file changed, 44 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dbt_run_dev_refresh.yml b/.github/workflows/dbt_run_dev_refresh.yml index ed3b791..3362a1e 100644 --- a/.github/workflows/dbt_run_dev_refresh.yml +++ b/.github/workflows/dbt_run_dev_refresh.yml @@ -43,12 +43,28 @@ jobs: run: | dbt run-operation fsc_evm.run_sp_create_prod_clone - notify-failure: - needs: [run_dbt_jobs_refresh] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} run_dbt_jobs_udfs: runs-on: ubuntu-latest @@ -74,9 +90,25 @@ jobs: dbt run-operation fsc_utils.create_evm_streamline_udfs --vars '{"UPDATE_UDFS_AND_SPS":True}' -t dev dbt run -s livequery_models.deploy.core._live --vars '{"UPDATE_UDFS_AND_SPS":True}' -t dev - notify-failure2: - needs: [run_dbt_jobs_udfs] - if: failure() - uses: FlipsideCrypto/fsc-evm/.github/workflows/slack_notify.yml@main - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + notify: + runs-on: ubuntu-latest + environment: workflow_prod + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install requests + pip install -r requirements.txt + dbt deps + + - name: Send Slack notification + run: python macros/python/slack_alert.py + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file From fdaf0365b6f8a5d91c2f471f3669f8b78541550d Mon Sep 17 00:00:00 2001 From: mattromano Date: Tue, 22 Jul 2025 16:31:27 -0700 Subject: [PATCH 4/5] dev --- .github/workflows/dbt_run_dev_refresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dbt_run_dev_refresh.yml b/.github/workflows/dbt_run_dev_refresh.yml index 3362a1e..f40f59e 100644 --- a/.github/workflows/dbt_run_dev_refresh.yml +++ b/.github/workflows/dbt_run_dev_refresh.yml @@ -45,7 +45,7 @@ jobs: notify: runs-on: ubuntu-latest - environment: workflow_prod + environment: workflow_dev steps: - name: Checkout uses: actions/checkout@v3 @@ -92,7 +92,7 @@ jobs: notify: runs-on: ubuntu-latest - environment: workflow_prod + environment: workflow_dev steps: - name: Checkout uses: actions/checkout@v3 From be683d61d9c05376825df515df719f516aa2e71c Mon Sep 17 00:00:00 2001 From: mattromano Date: Tue, 22 Jul 2025 16:42:05 -0700 Subject: [PATCH 5/5] update needs --- .github/workflows/dbt_deploy_new_workflows.yml | 2 ++ .github/workflows/dbt_docs_update.yml | 2 ++ .github/workflows/dbt_integration_test.yml | 2 ++ .github/workflows/dbt_run_adhoc.yml | 2 ++ .github/workflows/dbt_run_dev_refresh.yml | 4 ++++ .github/workflows/dbt_run_scheduled_main.yml | 2 ++ .github/workflows/dbt_run_streamline_chainhead.yml | 2 ++ .github/workflows/dbt_run_streamline_history.yml | 2 ++ .github/workflows/dbt_test_daily.yml | 2 ++ .github/workflows/dbt_test_intraday.yml | 2 ++ .github/workflows/dbt_test_monthly.yml | 2 ++ 11 files changed, 24 insertions(+) diff --git a/.github/workflows/dbt_deploy_new_workflows.yml b/.github/workflows/dbt_deploy_new_workflows.yml index 7f10980..1373a88 100644 --- a/.github/workflows/dbt_deploy_new_workflows.yml +++ b/.github/workflows/dbt_deploy_new_workflows.yml @@ -46,6 +46,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_docs_update.yml b/.github/workflows/dbt_docs_update.yml index cc9a6e4..1512045 100644 --- a/.github/workflows/dbt_docs_update.yml +++ b/.github/workflows/dbt_docs_update.yml @@ -77,6 +77,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_integration_test.yml b/.github/workflows/dbt_integration_test.yml index 7b52ee9..2b7b590 100644 --- a/.github/workflows/dbt_integration_test.yml +++ b/.github/workflows/dbt_integration_test.yml @@ -35,6 +35,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_run_adhoc.yml b/.github/workflows/dbt_run_adhoc.yml index 48e313f..7ec9f6a 100644 --- a/.github/workflows/dbt_run_adhoc.yml +++ b/.github/workflows/dbt_run_adhoc.yml @@ -68,6 +68,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_run_dev_refresh.yml b/.github/workflows/dbt_run_dev_refresh.yml index f40f59e..9f843a1 100644 --- a/.github/workflows/dbt_run_dev_refresh.yml +++ b/.github/workflows/dbt_run_dev_refresh.yml @@ -45,6 +45,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs_refresh + if: failure() environment: workflow_dev steps: - name: Checkout @@ -92,6 +94,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs_udfs + if: failure() environment: workflow_dev steps: - name: Checkout diff --git a/.github/workflows/dbt_run_scheduled_main.yml b/.github/workflows/dbt_run_scheduled_main.yml index c88b469..3b368ed 100644 --- a/.github/workflows/dbt_run_scheduled_main.yml +++ b/.github/workflows/dbt_run_scheduled_main.yml @@ -46,6 +46,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_run_streamline_chainhead.yml b/.github/workflows/dbt_run_streamline_chainhead.yml index 02ddc57..f89ea2f 100644 --- a/.github/workflows/dbt_run_streamline_chainhead.yml +++ b/.github/workflows/dbt_run_streamline_chainhead.yml @@ -50,6 +50,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_run_streamline_history.yml b/.github/workflows/dbt_run_streamline_history.yml index d73bd1e..419e61d 100644 --- a/.github/workflows/dbt_run_streamline_history.yml +++ b/.github/workflows/dbt_run_streamline_history.yml @@ -46,6 +46,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_test_daily.yml b/.github/workflows/dbt_test_daily.yml index 89653d8..d466879 100644 --- a/.github/workflows/dbt_test_daily.yml +++ b/.github/workflows/dbt_test_daily.yml @@ -50,6 +50,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_test_intraday.yml b/.github/workflows/dbt_test_intraday.yml index d821f96..a5f5dd2 100644 --- a/.github/workflows/dbt_test_intraday.yml +++ b/.github/workflows/dbt_test_intraday.yml @@ -50,6 +50,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout diff --git a/.github/workflows/dbt_test_monthly.yml b/.github/workflows/dbt_test_monthly.yml index 63745c4..b8a2bb4 100644 --- a/.github/workflows/dbt_test_monthly.yml +++ b/.github/workflows/dbt_test_monthly.yml @@ -50,6 +50,8 @@ jobs: notify: runs-on: ubuntu-latest + needs: run_dbt_jobs + if: failure() environment: workflow_prod steps: - name: Checkout