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