ODD #29762
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: ODD | |
on: | |
push: | |
schedule: | |
- cron: '0 * * * *' | |
workflow_dispatch: | |
concurrency: staging_environment | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GS_CREDENTIALS : ${{secrets.GS_CREDENTIALS}} | |
GS_ODD_PROD_KEY : ${{secrets.GS_ODD_PROD_KEY}} | |
GS_ODD_DEV_KEY : ${{secrets.GS_ODD_DEV_KEY}} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8.15' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run prod script | |
run: python dashboard_prod.py | |
- name: Run dev script | |
run: python dashboard_dev.py | |
- name: Report Status | |
if: always() | |
uses: ravsamhq/notify-slack-action@master | |
with: | |
status: ${{ job.status }} | |
mention_users: 'U01HAG8GGN9,U01J3MY6NGG,U01HG0K0JSF' | |
mention_users_when: 'failure,warnings' | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} | |
- name: Keepalive Workflow | |
uses: gautamkrishnar/[email protected] | |