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