mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-28 19:35:27 +08:00
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Sync landing docs from LangBot
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths: ['docs/**', '.github/workflows/sync-landing-submodule.yml']
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: sync-landing-docs-main
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
sync:
|
|
if: github.repository == 'langbot-app/LangBot' && github.ref == 'refs/heads/master' && vars.DOCS_PUBLISH_ENABLED == 'true'
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
ref: master
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
- name: Test synchronization contracts
|
|
working-directory: docs
|
|
run: python3 -m unittest discover -s tests -p test_sync_landing_submodule.py -v
|
|
- name: Update landing submodule and production fork
|
|
working-directory: docs
|
|
env:
|
|
GH_TOKEN: ${{ secrets.LANGBOT_WIKI_PUSH_TOKEN || secrets.RELEASE_UPLOAD_GITHUB_TOKEN }}
|
|
run: python3 scripts/sync-landing-submodule.py
|