From 170a39f0152ca0e3d101ba94df97fd912596e178 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 05:47:16 +0000 Subject: [PATCH] feat: automate unattended deployment of promotions Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com> --- .github/workflows/deploy-promotions.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-promotions.yml b/.github/workflows/deploy-promotions.yml index 8fc05c4cec..ce47988f7c 100644 --- a/.github/workflows/deploy-promotions.yml +++ b/.github/workflows/deploy-promotions.yml @@ -5,14 +5,10 @@ on: branches: - main paths: - - 'promotion_example.json' + - 'promotions/**/*.json' + schedule: + - cron: '0 0 * * *' workflow_dispatch: - inputs: - file: - description: 'Path to the JSON file containing promotional content' - required: true - default: 'promotion_example.json' - type: string jobs: deploy: @@ -30,4 +26,4 @@ jobs: env: TRYONYOU_API_KEY: ${{ secrets.TRYONYOU_API_KEY }} run: | - python3 scripts/deploy_promotions.py "${{ github.event.inputs.file || 'promotion_example.json' }}" + bash ./scripts/automate_promotions.sh