mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
32 lines
No EOL
705 B
YAML
32 lines
No EOL
705 B
YAML
name: Hubspot Sync
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 6 * * *' # Every day at 06:00 UTC
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
hubspot-sync:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install poetry
|
|
poetry install --no-root
|
|
|
|
- name: Run scripts
|
|
env:
|
|
PYTHONPATH: ${{ github.workspace }}
|
|
DATABASE_URL: ${{ secrets.PROD_DATABASE_URL }}
|
|
run: |
|
|
pwd
|
|
ls -la
|
|
poetry run python etl/hubSpotClient/scripts/hubspot_update_script.py
|
|
|