From b9b6165a3e160d023432bd45f081acdc30eb2370 Mon Sep 17 00:00:00 2001 From: vastxie Date: Mon, 22 Apr 2024 23:03:42 +0800 Subject: [PATCH] Delete .github/workflows/sync.yml --- .github/workflows/sync.yml | 43 -------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml deleted file mode 100644 index 18c37dc..0000000 --- a/.github/workflows/sync.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Upstream Sync - -permissions: - contents: write - -on: - schedule: - - cron: '0 */3 * * *' # 每3小时执行一次 - workflow_dispatch: - -jobs: - sync_latest_from_upstream: - name: Sync latest commits from upstream repo - runs-on: ubuntu-latest - if: ${{ github.event.repository.fork }} - - steps: - - name: Checkout target repo - uses: actions/checkout@v3 - - - name: Sync upstream changes - id: sync - uses: aormsby/Fork-Sync-With-Upstream-action@v3.4 - with: - upstream_sync_repo: vastxie/99AI - upstream_sync_branch: main - target_sync_branch: main - target_repo_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Sync check - if: failure() - run: | - echo "Sync failed." - exit 1 - - - name: Trigger docker-image workflow - if: steps.sync.outputs.changes_detected == 'true' - run: | - curl -X POST \ - -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/KenGrofork/NineAIQuickDeploy/dispatches \ - -d '{"event_type": "trigger-docker-image"}'