Skip to content

Sync docs on schedule #14

Sync docs on schedule

Sync docs on schedule #14

name: Sync docs on schedule
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *" # every 6 hours
jobs:
sync_scheduler:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout current repo
uses: actions/checkout@v3
- 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.0-preview