sync.yml 923 B

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