From 657f63991d685c86df1fe065f8aa10fc2823407c Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 11 Nov 2024 16:13:54 +0800 Subject: [PATCH] Revert "trigger v8.4-preview every 3 hours" This reverts commit 09729d3e11c3799d4fe3e977a0093c5300247c38. --- .github/workflows/sync_scheduler.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync_scheduler.yml b/.github/workflows/sync_scheduler.yml index 493f4114..4a45fd07 100644 --- a/.github/workflows/sync_scheduler.yml +++ b/.github/workflows/sync_scheduler.yml @@ -2,8 +2,10 @@ name: Sync docs on schedule on: workflow_dispatch: - schedule: - - cron: "0 */3 * * *" # every 3 hours +# schedule: +# - cron: "0 0 */15 * *" # every 15 days +# - cron: "0 0 * * *" # every day at 00:00 +# - cron: "0 */6 * * *" # every 6 hours jobs: sync_scheduler: @@ -18,7 +20,24 @@ jobs: - name: Checkout current repo uses: actions/checkout@v3 + - name: Sync scaffold on schedule + if: github.event_name == 'schedule' && github.event.schedule == '0 0 */15 * *' + run: | + gh workflow run sync_scaffold.yml --ref ${{env.SCAFFOLD_BRANCH}} + + - name: Sync preview branch on schedule + if: github.event_name == 'schedule' && github.event.schedule == '0 0 * * *' + run: | + gh workflow run sync_pr.yml --ref ${{env.PREVIEW_BRANCH}} + - name: Sync preview branch (multiple PRs) on schedule - if: github.event_name == 'schedule' && github.event.schedule == '0 */3 * * *' + if: github.event_name == 'schedule' && github.event.schedule == '0 */6 * * *' + run: | + gh workflow run sync_mult_prs.yml --ref ${{env.MULT_PR_PREVIEW_BRANCH}} + + - name: Sync multiple branches on workflow_dispatch + if: github.event_name == 'workflow_dispatch' run: | - gh workflow run sync_mult_prs.yml --ref v8.4-preview + gh workflow run sync_scaffold.yml --ref ${{env.SCAFFOLD_BRANCH}} + gh workflow run sync_pr.yml --ref ${{env.PREVIEW_BRANCH}} + gh workflow run sync_mult_prs.yml --ref ${{env.MULT_PR_PREVIEW_BRANCH}}