Browse Source

fix(main): optimize actions

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
tags/v0.1.0
Xinwei Xiong(cubxxw-openim) 3 years ago
parent
commit
e580a8d867
3 changed files with 0 additions and 113 deletions
  1. +0
    -69
      .github/sync.yml
  2. +0
    -1
      .github/workflows/e2e-test.yml
  3. +0
    -43
      .github/workflows/sync.yml

+ 0
- 69
.github/sync.yml View File

@@ -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

+ 0
- 1
.github/workflows/e2e-test.yml View File

@@ -1 +0,0 @@
#

+ 0
- 43
.github/workflows/sync.yml View File

@@ -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

Loading…
Cancel
Save