lobe-chat
1name: Upstream Sync2
3permissions:4contents: write5issues: write6actions: write7
8on:9schedule:10- cron: '0 */6 * * *' # every 6 hours11workflow_dispatch:12
13jobs:14sync_latest_from_upstream:15name: Sync latest commits from upstream repo16runs-on: ubuntu-latest17if: ${{ github.event.repository.fork }}18
19steps:20- uses: actions/checkout@v421
22- name: Clean issue notice23uses: actions-cool/issues-helper@v324with:25actions: 'close-issues'26labels: '🚨 Sync Fail'27
28- name: Sync upstream changes29id: sync30uses: aormsby/Fork-Sync-With-Upstream-action@v3.431with:32upstream_sync_repo: lobehub/lobe-chat33upstream_sync_branch: main34target_sync_branch: main35target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set36test_mode: false37
38- name: Sync check39if: failure()40uses: actions-cool/issues-helper@v341with:42actions: 'create-issue'43title: '🚨 同步失败 | Sync Fail'44labels: '🚨 Sync Fail'45body: |46Due to a change in the workflow file of the [LobeChat][lobechat] upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the detailed [Tutorial][tutorial-en-US] for instructions.
47
48由于 [LobeChat][lobechat] 上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次,请查看 [详细教程][tutorial-zh-CN]49
50![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/273954625-df80c890-0822-4ac2-95e6-c990785cbed5.png)51
52[lobechat]: https://github.com/lobehub/lobe-chat53[tutorial-zh-CN]: https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync.zh-CN54[tutorial-en-US]: https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync55