From c3c897419e21aa2ec061e96030ab6bbd4931a8c4 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Fri, 9 Jun 2023 21:00:20 +0800 Subject: [PATCH] feat: sync ropo Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .github/sync_docs.yml | 25 +++++++++++++++++++++++++ .github/workflows/sync_docs.yml | 28 ++++++++++++++++++++++++++++ script/make-rules/tools.mk | 2 +- 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .github/sync_docs.yml create mode 100644 .github/workflows/sync_docs.yml diff --git a/.github/sync_docs.yml b/.github/sync_docs.yml new file mode 100644 index 000000000..85c8b1a4f --- /dev/null +++ b/.github/sync_docs.yml @@ -0,0 +1,25 @@ +# https://github.com/BetaHuhn/repo-file-sync-action +OpenIMSDK/openim-sdk-core: + - source: LICENSE + dest: LICENSE + - source: .gitingore + dest: .gitingore + - source: .golangci.yml + dest: .golangci.yml + - source: workflows/ + dest: .github/workflows/ + replace: false + exclude: | + e2e-test.yml + +group: + repos: | + OpenIMSDK/OpenIM-Docs + OpenIMSDK/community + files: + - source: .gitingore + dest: .gitingore + - source: LICENSE + dest: LICENSE + - source: .github/sync_docs.yml + dest: .github/sync_docs.yml \ No newline at end of file diff --git a/.github/workflows/sync_docs.yml b/.github/workflows/sync_docs.yml new file mode 100644 index 000000000..cd3729761 --- /dev/null +++ b/.github/workflows/sync_docs.yml @@ -0,0 +1,28 @@ +# https://github.com/BetaHuhn/repo-file-sync-action +name: Sync Docs +on: + push: + branches: + - main + paths: + - ".golangci.yml" + - ".gitingore" + - "LICENSE" + 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_docs.yml + ORIGINAL_MESSAGE: true + SKIP_PR: true + COMMIT_EACH_FILE: false + GIT_EMAIL: "3293172751nss@gmail.com" + GIT_USERNAME: "openim-kubbot" diff --git a/script/make-rules/tools.mk b/script/make-rules/tools.mk index 33d9437b9..a1dd22640 100644 --- a/script/make-rules/tools.mk +++ b/script/make-rules/tools.mk @@ -25,7 +25,7 @@ ANALYSIS_TOOLS = golangci-lint goimports golines go-callvis kube-score GENERATION_TOOLS = deepcopy-gen conversion-gen protoc-gen-go cfssl rts codegen # Testing tools TEST_TOOLS = ginkgo go-junit-report gotests -# cos tools +# tenxun cos tools COS_TOOLS = coscli coscmd # Version control tools VERSION_CONTROL_TOOLS = addlicense go-gitlint git-chglog github-release gsemver