run on microsoft servers

This commit is contained in:
Jun-te Kim 2026-04-23 13:19:27 +00:00
parent e538ade8bb
commit eefb3c84b4
2 changed files with 41 additions and 48 deletions

View file

@ -1,51 +1,51 @@
name: Hubspot Sync
# name: Hubspot Sync
on:
schedule:
# Every 15 minutes, 07:0018:59, MondayFriday (UTC)
- cron: '0 7-18/2 * * 1-5'
# on:
# schedule:
# # Every 15 minutes, 07:0018:59, MondayFriday (UTC)
# - cron: '0 7-18/2 * * 1-5'
# Once on Saturday at 09:00 UTC
- cron: '0 9 * * 6'
# # Once on Saturday at 09:00 UTC
# - cron: '0 9 * * 6'
# Once on Sunday at 09:00 UTC
- cron: '0 9 * * 0'
workflow_dispatch:
# # Once on Sunday at 09:00 UTC
# - cron: '0 9 * * 0'
# workflow_dispatch:
jobs:
hubspot-sync:
runs-on: [self-hosted, mist]
steps:
- uses: actions/checkout@v4
# jobs:
# hubspot-sync:
# runs-on: [self-hosted, mist]
# steps:
# - uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
# - 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: 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_gather_all_deals.py
# # - name: Run scripts
# # env:
# # PYTHONPATH: ${{ github.workspace }}
# # DATABASE_URL: ${{ secrets.PROD_DATABASE_URL }}
# # run: |
# # pwd
# # ls -la
# # poetry run python etl/hubSpotClient/scripts/hubspot_gather_all_deals.py
- 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
# - 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

View file

@ -2,19 +2,12 @@ name: Months End
on:
schedule:
- cron: '0 7 * * 1' # Every Monday at 07:00 UTC
- cron: '0 7 23 * *' # On the 23th of every month at 07:00 UTC
- cron: '0 7 24 * *' # On the 25th of every month at 07:00 UTC
- cron: '0 7 25 * *' # On the 25th of every month at 07:00 UTC
- cron: '0 7 26 * *' # On the 26th of every month at 07:00 UTC
- cron: '0 7 27 * *' # On the 26th of every month at 07:00 UTC
- cron: '0 7 29 * *' # On the 29th of every month at 07:00 UTC
- cron: '0 7 19 * *' # On the 29th of every month at 07:00 UTC
- cron: '0 7 23-31 * *' # Every day from the 23rd to end of month at 07:00 UTC
workflow_dispatch:
jobs:
surveyed-needs-sign-off:
runs-on: [self-hosted, mist]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4