Skip to content

Send custom JSON data to Slack workflow #21

Send custom JSON data to Slack workflow

Send custom JSON data to Slack workflow #21

Workflow file for this run

name: Send custom JSON data to Slack workflow
# Tues @4am UTC
on:
schedule:
- cron: "0 4 * * 2"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source repo
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
- name: Install requirements
run: pip install -r ./telemetry-expiry/requirements.txt
# Temporary hard code project
- name: Run telemetry probe expiry check
run: python ./telemetry-expiry/check_metrics.py -p focus-ios
- name: Run telemetry probe expiry check
run: ls -la
- name: Demo Slack Message
id: slack
uses: slackapi/[email protected]
with:
payload-file-path: "./slack-payload.json"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_TEST_ALERTS_SANDBOX }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK