From c3249a88523508aa8328b63225703f676afe68bb Mon Sep 17 00:00:00 2001 From: RockChinQ Date: Tue, 27 Oct 2026 08:17:36 +0000 Subject: [PATCH] fix(ci): target LangBot's master branch in the migrated docs workflows LangBot's default branch is master, so the landing-submodule, wiki and blog sync workflows would never have triggered and would have pushed to a non-existent main. Also restore the wiki clone URL that was truncated in the mirror copy of sync-github-wiki.yml. Co-Authored-By: Mika (Multica) Co-authored-by: multica-agent --- .github/workflows/sync-blog-articles.yml | 10 +++++----- .github/workflows/sync-github-wiki.yml | 4 ++-- .github/workflows/sync-landing-submodule.yml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sync-blog-articles.yml b/.github/workflows/sync-blog-articles.yml index c7ccf0668..894edc001 100644 --- a/.github/workflows/sync-blog-articles.yml +++ b/.github/workflows/sync-blog-articles.yml @@ -14,7 +14,7 @@ concurrency: jobs: sync: - if: github.repository == 'langbot-app/LangBot' && github.ref == 'refs/heads/main' && vars.DOCS_MIRROR_ENABLED == 'true' + if: github.repository == 'langbot-app/LangBot' && github.ref == 'refs/heads/master' && vars.DOCS_MIRROR_ENABLED == 'true' runs-on: ubuntu-latest timeout-minutes: 20 defaults: @@ -22,9 +22,9 @@ jobs: working-directory: docs steps: - name: Check out main - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: - ref: main + ref: master fetch-depth: 0 # A PAT push triggers the mirror and Wiki workflows; GITHUB_TOKEN does not. token: ${{ secrets.LANGBOT_WIKI_PUSH_TOKEN }} @@ -35,7 +35,7 @@ jobs: cache-dependency-path: docs/package-lock.json - run: npm ci - name: Check out LangBot landing page - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: repository: langbot-app/langbot-landing-page token: ${{ secrets.LANGBOT_WIKI_PUSH_TOKEN }} @@ -59,4 +59,4 @@ jobs: git config user.name 'langbot-docs-bot' git config user.email 'actions@users.noreply.github.com' git commit -m 'docs(articles): sync LangBot Blog' - git push origin HEAD:main + git push origin HEAD:master diff --git a/.github/workflows/sync-github-wiki.yml b/.github/workflows/sync-github-wiki.yml index 03140de9e..0aa788127 100644 --- a/.github/workflows/sync-github-wiki.yml +++ b/.github/workflows/sync-github-wiki.yml @@ -2,7 +2,7 @@ name: Sync GitHub Wiki on: push: - branches: [main] + branches: [master] paths: - "docs/en/**" - "docs/zh/**" @@ -57,7 +57,7 @@ jobs: sync: name: Publish to LangBot Wiki - if: github.event_name != 'pull_request' && github.repository == 'langbot-app/LangBot' && github.ref == 'refs/heads/main' && vars.DOCS_MIRROR_ENABLED == 'true' + if: github.event_name != 'pull_request' && github.repository == 'langbot-app/LangBot' && github.ref == 'refs/heads/master' && vars.DOCS_MIRROR_ENABLED == 'true' needs: build runs-on: ubuntu-latest timeout-minutes: 5 diff --git a/.github/workflows/sync-landing-submodule.yml b/.github/workflows/sync-landing-submodule.yml index e4d736a93..daa93bce7 100644 --- a/.github/workflows/sync-landing-submodule.yml +++ b/.github/workflows/sync-landing-submodule.yml @@ -2,7 +2,7 @@ name: Sync docs mirror and landing submodule on: push: - branches: [main] + branches: [master] paths: ['docs/**', '.github/workflows/sync-landing-submodule.yml'] workflow_dispatch: @@ -15,13 +15,13 @@ concurrency: jobs: sync: - if: github.repository == 'langbot-app/LangBot' && github.ref == 'refs/heads/main' && vars.DOCS_MIRROR_ENABLED == 'true' + if: github.repository == 'langbot-app/LangBot' && github.ref == 'refs/heads/master' && vars.DOCS_MIRROR_ENABLED == 'true' runs-on: ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v7 with: - ref: main + ref: master fetch-depth: 0 persist-credentials: false - name: Test synchronization contracts