mirror of
https://github.com/FlipsideCrypto/fsc-evm.git
synced 2026-02-06 14:16:46 +00:00
33 lines
915 B
YAML
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 }} |