From eefb3c84b449bd665f980b9c2b7b05de53d1c532 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Thu, 23 Apr 2026 13:19:27 +0000 Subject: [PATCH] run on microsoft servers --- .github/workflows/hubspot_sync.yml | 78 +++++++++++++++--------------- .github/workflows/months_end.yml | 11 +---- 2 files changed, 41 insertions(+), 48 deletions(-) diff --git a/.github/workflows/hubspot_sync.yml b/.github/workflows/hubspot_sync.yml index e1fb5cd..9171dbd 100644 --- a/.github/workflows/hubspot_sync.yml +++ b/.github/workflows/hubspot_sync.yml @@ -1,51 +1,51 @@ -name: Hubspot Sync +# name: Hubspot Sync -on: - schedule: - # Every 15 minutes, 07:00–18:59, Monday–Friday (UTC) - - cron: '0 7-18/2 * * 1-5' +# on: +# schedule: +# # Every 15 minutes, 07:00–18:59, Monday–Friday (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 diff --git a/.github/workflows/months_end.yml b/.github/workflows/months_end.yml index 4fd163b..21dd630 100644 --- a/.github/workflows/months_end.yml +++ b/.github/workflows/months_end.yml @@ -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