From e580a8d867b86c92f773a959a7df25fbe10bbd47 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Sat, 24 Jun 2023 14:03:08 +0800 Subject: [PATCH] fix(main): optimize actions Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .github/sync.yml | 69 ---------------------------------- .github/workflows/e2e-test.yml | 1 - .github/workflows/sync.yml | 43 --------------------- 3 files changed, 113 deletions(-) delete mode 100644 .github/sync.yml delete mode 100644 .github/workflows/e2e-test.yml delete mode 100644 .github/workflows/sync.yml diff --git a/.github/sync.yml b/.github/sync.yml deleted file mode 100644 index c3efaf2..0000000 --- a/.github/sync.yml +++ /dev/null @@ -1,69 +0,0 @@ -# https://github.com/BetaHuhn/repo-file-sync-action -# Synchronization for the.github repository -OpenIMSDK/.github: - - source: LICENSE - dest: LICENSE - - source: script/LICENSE/ - dest: scripts/LICENSE/ - replace: true - - source: .github/ - dest: .github/ - replace: true - exclude: | - workflows/ - sync.yml - -OpenIMSDK/community: - - source: LICENSE - dest: LICENSE - - source: script/LICENSE/ - dest: scripts/LICENSE/ - replace: true - - source: .github/workflows/ - dest: .github/workflows/ - exclude: - - e2e-test.yml - - sync.yml - - source: .github/ - dest: .github/ - replace: true - exclude: | - sync.yml - -OpenIMSDK/openim-sdk-core: - - source: LICENSE - dest: LICENSE - - source: script/LICENSE/ - dest: scripts/LICENSE/ - replace: true - - source: .github/workflows/ - dest: .github/workflows/ - exclude: - - e2e-test.yml - - sync.yml - - source: .github/ - dest: .github/ - replace: true - exclude: | - sync.yml - -group: - # first group:common to all warehouses - # TODO: add the required warehouse here - - repos: | - OpenIMSDK/OpenIM-Docs@main - files: - # - source: .gitingore - # dest: .gitingore - # replace: false - - source: LICENSE - dest: LICENSE - replace: false - - source: .github/workflows/ - dest: .github/workflows/ - exclude: | - e2e-test.yml - sync.yml - - source: script/githooks/ - dest: scripts/githooks/ - replace: false \ No newline at end of file diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml deleted file mode 100644 index 4e768b5..0000000 --- a/.github/workflows/e2e-test.yml +++ /dev/null @@ -1 +0,0 @@ -# \ No newline at end of file diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml deleted file mode 100644 index 871e400..0000000 --- a/.github/workflows/sync.yml +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright © 2023 KubeCub open source community. All rights reserved. -# Licensed under the MIT License (the "License"); -# you may not use this file except in compliance with the License. - -# https://github.com/BetaHuhn/repo-file-sync-action -name: Synchronize kubecub public code to other repositories -on: - push: - branches: - - main - pull_request: - branches: - - main - workflow_dispatch: - -jobs: - sync: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Run GitHub File Sync - uses: BetaHuhn/repo-file-sync-action@latest - with: - GH_INSTALLATION_TOKEN: "${{ secrets.BOT_GITHUB_TOKEN }}" - CONFIG_PATH: .github/sync.yml - GH_PAT: "${{ secrets.BOT_GITHUB_TOKEN }}" - ORIGINAL_MESSAGE: true - SKIP_PR: true - COMMIT_EACH_FILE: false - COMMIT_BODY: "🤖 kubbot to synchronize the warehouse" - GIT_EMAIL: "3293172751ysy@gmail.com" - GIT_USERNAME: "kubbot" - PR_BODY: 👌 kubecub provides automated community services - REVIEWERS: | - kubbot - cubxxw - PR_LABELS: | - file-sync - automerge - ASSIGNEES: | - kubbot \ No newline at end of file