Skip to content

Commit

Permalink
Revert "trigger v8.1-preview every 6 hours"
Browse files Browse the repository at this point in the history
This reverts commit 0e9c611.
  • Loading branch information
Oreoxmt committed Jun 7, 2024
1 parent def0687 commit 039146b
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/sync_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Sync docs on schedule

on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *" # every 6 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:
Expand All @@ -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 */6 * * *'
run: |
gh workflow run sync_mult_prs.yml --ref v8.1-preview
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_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}}

0 comments on commit 039146b

Please sign in to comment.