name: Upstream Sync permissions: contents: write issues: write actions: write on: schedule: - cron: '0 */6 * * *' # every 6 hours workflow_dispatch: jobs: sync_latest_from_upstream: name: Sync latest commits from upstream repo runs-on: ubuntu-latest if: ${{ github.event.repository.fork }} steps: - uses: actions/checkout@v6 - name: Clean issue notice uses: actions-cool/issues-helper@v3 with: actions: 'close-issues' labels: '🚨 Sync Fail' - name: Sync upstream changes id: sync uses: aormsby/Fork-Sync-With-Upstream-action@v3.4 with: upstream_sync_repo: bmad-code-org/BMAD-METHOD upstream_sync_branch: main target_sync_branch: main target_repo_token: ${{ secrets.GITHUB_TOKEN }} test_mode: false - name: Sync check if: failure() uses: actions-cool/issues-helper@v3 with: actions: 'create-issue' title: '🚨 Upstream Sync Failed' labels: '🚨 Sync Fail' body: | Due to a change in the workflow file of the [BMAD-METHOD][upstream] upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. ### How to fix 1. Go to your fork on GitHub 2. Click **Sync fork** → **Update branch** 3. If there are conflicts, clone locally and resolve them ![Sync fork button](https://docs.github.com/assets/cb-49937/mw-1440/images/help/repository/sync-fork-dropdown.webp) [upstream]: https://github.com/bmad-code-org/BMAD-METHOD