mirror of
https://github.com/FlipsideCrypto/cosmos-models.git
synced 2026-02-06 11:01:45 +00:00
27 lines
617 B
YAML
27 lines
617 B
YAML
name: Slack Notification
|
|
on:
|
|
workflow_call:
|
|
secrets:
|
|
SLACK_WEBHOOK_URL:
|
|
required: true
|
|
|
|
jobs:
|
|
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
|
|
|
|
- name: Send Slack notification
|
|
run: python python/slack_alert.py
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |