sync.yml 878 B

1234567891011121314151617181920212223242526272829
  1. name: Upstream Sync
  2. on:
  3. schedule:
  4. - cron: '0 */12 * * *' # every 12 hours
  5. workflow_dispatch: # on button click
  6. jobs:
  7. sync_latest_from_upstream:
  8. name: Sync latest commits from upstream repo
  9. runs-on: ubuntu-latest
  10. steps:
  11. # Step 1: run a standard checkout action, provided by github
  12. - name: Checkout target repo
  13. uses: actions/checkout@v3
  14. # Step 2: run the sync action
  15. - name: Sync upstream changes
  16. id: sync
  17. uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
  18. with:
  19. upstream_sync_repo: Yidadaa/ChatGPT-Next-Web
  20. upstream_sync_branch: main
  21. target_sync_branch: main
  22. target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
  23. # Set test_mode true to run tests instead of the true action!!
  24. test_mode: false