Hit endpoints #4363
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: Hit endpoints | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0,10,20,30,40,50 0,1,12,13,14,15,16,17,18,19,20,21,22,23 * * 1,2,3,4,5' | |
jobs: | |
refresh-endpoints: | |
runs-on: ubuntu-latest | |
environment: ScriptsEnv | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Python Version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Dependencies | |
uses: py-actions/py-dependency-install@v4 | |
with: | |
path: "scripts/endpoint_refresh_requirements.txt" | |
- name: Run Script | |
env: | |
MODELS_URL: ${{ secrets.VALUATION_URL }} | |
VALUATION_URL: ${{ secrets.VALUATION_URL }} | |
BACKEND_URL: ${{ secrets.BACKEND_URL }} | |
FRONTEND_URL: ${{ secrets.FRONTEND_URL }} | |
run: | | |
cd scripts | |
python3 hit_endpoints.py |