fsc-evm/.github/workflows/slack_notify.yml
2026-01-13 15:29:46 -05:00

33 lines
915 B
YAML

name: Slack Notification
on:
workflow_call:
secrets:
SLACK_WEBHOOK_URL:
required: true
jobs:
notify:
runs-on: ubuntu-latest
environment: workflow_secrets
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Configure git for internal repos
run: git config --global url."https://x-access-token:${{ secrets.GH_INTERNAL_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: Install dependencies
run: |
pip install requests
pip install -r requirements.txt
dbt deps
- name: Send Slack notification
run: python dbt_packages/fsc_evm/macros/global/python/slack_alert.py
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}