diff --git a/.github/sync-release.yml b/.github/sync-release.yml new file mode 100644 index 00000000..b8c27976 --- /dev/null +++ b/.github/sync-release.yml @@ -0,0 +1,26 @@ +# Copyright © 2023 OpenIM. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# https://github.com/BetaHuhn/repo-file-sync-action +# Synchronization for the.github repository +openim-sigs/openim-docker: + - source: ./config + dest: ./openim-chat/release/config + replace: true + - source: ./docs + dest: ./openim-chat/release/docs + replace: true + - source: ./scripts + dest: ./openim-chat/release/scripts + replace: true diff --git a/.github/sync.yml b/.github/sync.yml index 7b718143..8664e834 100644 --- a/.github/sync.yml +++ b/.github/sync.yml @@ -16,11 +16,11 @@ # Synchronization for the.github repository openim-sigs/openim-docker: - source: ./config - dest: ./openim-chat/config + dest: ./openim-chat/main/config replace: true - source: ./docs - dest: ./openim-chat/docs + dest: ./openim-chat/main/docs replace: true - source: ./scripts - dest: ./openim-chat/scripts + dest: ./openim-chat/main/scripts replace: true diff --git a/.github/workflows/sync-release.yml b/.github/workflows/sync-release.yml new file mode 100644 index 00000000..868f4258 --- /dev/null +++ b/.github/workflows/sync-release.yml @@ -0,0 +1,40 @@ +# 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 OpenIM Chat release public code to other repositories +on: + push: + branches: + - release-* + + 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-release.yml + 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 diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 4d82375d..153ba5b0 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -3,7 +3,7 @@ # 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 +name: Synchronize OpenIM Chat main public code to other repositories on: push: branches: