Data monitoring notifications #758
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Data monitoring notifications | |
on: | |
schedule: | |
# Every day at 11:30 PM UTC | |
- cron: "30 23 * * *" | |
jobs: | |
monitoring-notify: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: ingestion/monitoring | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: eu-central-1 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run metrics script | |
env: | |
SLACK_WEBHOOK_METRICS_URL: ${{ secrets.SLACK_WEBHOOK_METRICS_URL }} | |
run: python daily_metrics.py |