sync.yml 936 B

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