From cd86f8b03f318875b4e61e1199fd96c57e35f689 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Fri, 9 Jun 2023 22:12:02 +0800 Subject: [PATCH] feat: sync robot Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .github/sync.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/sync.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/sync.yml create mode 100644 .github/workflows/sync.yml diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 000000000..1253a4a04 --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,29 @@ +# https://github.com/BetaHuhn/repo-file-sync-action +OpenIMSDK/openim-sdk-core: + - source: LICENSE + dest: LICENSE + - source: .golangci.yml + dest: .golangci.yml + - source: .github/workflows/ + dest: .github/workflows/ + replace: true + exclude: | + e2e-test.yml + sync.yml + +# group: +# repos: | +# OpenIMSDK/OpenIM-Docs +# OpenIMSDK/community +# files: +# - source: .gitingore +# dest: .gitingore +# - source: LICENSE +# dest: LICENSE +# replace: false +# - source: .github/sync_docs.yml +# dest: .github/sync_docs.yml +# - source: workflows/ +# dest: .github/workflows/ +# exclude: | +# e2e-test.yml \ No newline at end of file diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 000000000..bb06c3a1d --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,29 @@ +# https://github.com/BetaHuhn/repo-file-sync-action +name: Sync Docs +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@v1.21.0 + with: + GH_PAT: ${{ secrets.BOT_GITHUB_TOKEN }} + CONFIG_PATH: .github/sync.yml + ORIGINAL_MESSAGE: true + SKIP_PR: true + COMMIT_EACH_FILE: false + GIT_EMAIL: "3293172751nss@gmail.com" + GIT_USERNAME: "cubxxw" + FORK: cubxxw \ No newline at end of file