From cab898ef7a4410d3e95deaa068e18a376fb1fe4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Mon, 13 Jan 2025 17:05:25 +0800 Subject: [PATCH 1/3] chore(ci): add auto pr ci --- .../workflows/auto-pr-tdesign-miniprogram.yml | 23 +++++++++++++++++++ .../auto-pr-tdesign-moible-react.yml | 20 ++++++++++++++++ .../workflows/auto-pr-tdesign-moible-vue.yml | 20 ++++++++++++++++ .github/workflows/auto-pr-tdesign-react.yml | 20 ++++++++++++++++ .../workflows/auto-pr-tdesign-vue-next.yml | 20 ++++++++++++++++ .github/workflows/auto-pr-tdesign-vue.yml | 20 ++++++++++++++++ 6 files changed, 123 insertions(+) create mode 100644 .github/workflows/auto-pr-tdesign-miniprogram.yml create mode 100644 .github/workflows/auto-pr-tdesign-moible-react.yml create mode 100644 .github/workflows/auto-pr-tdesign-moible-vue.yml create mode 100644 .github/workflows/auto-pr-tdesign-react.yml create mode 100644 .github/workflows/auto-pr-tdesign-vue-next.yml create mode 100644 .github/workflows/auto-pr-tdesign-vue.yml diff --git a/.github/workflows/auto-pr-tdesign-miniprogram.yml b/.github/workflows/auto-pr-tdesign-miniprogram.yml new file mode 100644 index 00000000..e41240c4 --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-miniprogram.yml @@ -0,0 +1,23 @@ +name: auto-pr-tdesign-miniprogram + +on: + pull_request: + branches: [ develop ] + types: [ closed ] + paths: + - "packages/vue-next/package.json" +jobs: + auto-pr: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Auto PR tdesign-miniprogram + uses: TDesignOteam//tdesign-pr-trigger-action@develop + env: + GITHUB_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }} + with: + pr_number: ${{ github.event.pull_request.number }} + comment: /pr-miniprogram \ No newline at end of file diff --git a/.github/workflows/auto-pr-tdesign-moible-react.yml b/.github/workflows/auto-pr-tdesign-moible-react.yml new file mode 100644 index 00000000..cb360109 --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-moible-react.yml @@ -0,0 +1,20 @@ +name: auto-pr-tdesign-mobile-react + +on: + pull_request: + branches: [ develop ] + types: [ closed ] + paths: + - "packages/react/package.json" +jobs: + auto-pr: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: Auto PR tdesign-mobile-react + uses: TDesignOteam//tdesign-pr-trigger-action@develop + env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} + with: + pr_number: ${{ github.event.pull_request.number }} + comment: /pr-mobile-react \ No newline at end of file diff --git a/.github/workflows/auto-pr-tdesign-moible-vue.yml b/.github/workflows/auto-pr-tdesign-moible-vue.yml new file mode 100644 index 00000000..d5abe1ba --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-moible-vue.yml @@ -0,0 +1,20 @@ +name: auto-pr-tdesign-mobile-vue + +on: + pull_request: + branches: [ develop ] + types: [ closed] + paths: + - "packages/vue-next/package.json" +jobs: + auto-pr: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: Auto PR tdesign-vue + uses: TDesignOteam//tdesign-pr-trigger-action@develop + env: + GITHUB_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }} + with: + pr_number: ${{ github.event.pull_request.number }} + comment: /pr-mobile-vue \ No newline at end of file diff --git a/.github/workflows/auto-pr-tdesign-react.yml b/.github/workflows/auto-pr-tdesign-react.yml new file mode 100644 index 00000000..157fdf97 --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-react.yml @@ -0,0 +1,20 @@ +name: auto-pr-tdesign-react + +on: + pull_request: + branches: [ develop ] + types: [ closed] + paths: + - "packages/react/package.json" +jobs: + auto-pr: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: Auto PR tdesign-vue + uses: TDesignOteam//tdesign-pr-trigger-action@develop + env: + GITHUB_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }} + with: + pr_number: ${{ github.event.pull_request.number }} + comment: /pr-react \ No newline at end of file diff --git a/.github/workflows/auto-pr-tdesign-vue-next.yml b/.github/workflows/auto-pr-tdesign-vue-next.yml new file mode 100644 index 00000000..3a1812a4 --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-vue-next.yml @@ -0,0 +1,20 @@ +name: auto-pr-tdesign-vue-next + +on: + pull_request: + branches: [ develop ] + types: [ closed] + paths: + - "packages/vue-next/package.json" +jobs: + auto-pr: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: Auto PR tdesign-vue-next + uses: TDesignOteam//tdesign-pr-trigger-action@develop + env: + GITHUB_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }} + with: + pr_number: ${{ github.event.pull_request.number }} + comment: /pr-vue-next \ No newline at end of file diff --git a/.github/workflows/auto-pr-tdesign-vue.yml b/.github/workflows/auto-pr-tdesign-vue.yml new file mode 100644 index 00000000..5a66dde7 --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-vue.yml @@ -0,0 +1,20 @@ +name: auto-pr-tdesign-vue + +on: + pull_request: + branches: [ develop ] + types: [ closed] + paths: + - "packages/vue/package.json" +jobs: + auto-pr: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: Auto PR tdesign-vue + uses: TDesignOteam//tdesign-pr-trigger-action@develop + env: + GITHUB_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }} + with: + pr_number: ${{ github.event.pull_request.number }} + comment: /pr-vue \ No newline at end of file From 8ca7c79f23633cb549c4f6ab0c5bc545dd3f2dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Mon, 13 Jan 2025 17:07:02 +0800 Subject: [PATCH 2/3] chore(ci): TDESIGN_BOT_TOKEN --- .github/workflows/auto-pr-tdesign-moible-react.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-pr-tdesign-moible-react.yml b/.github/workflows/auto-pr-tdesign-moible-react.yml index cb360109..bdd30992 100644 --- a/.github/workflows/auto-pr-tdesign-moible-react.yml +++ b/.github/workflows/auto-pr-tdesign-moible-react.yml @@ -14,7 +14,7 @@ jobs: - name: Auto PR tdesign-mobile-react uses: TDesignOteam//tdesign-pr-trigger-action@develop env: - GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TDESIGN_BOT_TOKEN }} with: pr_number: ${{ github.event.pull_request.number }} comment: /pr-mobile-react \ No newline at end of file From d08c5b339e0d0455e0b8ae5114a5ece17719a18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Mon, 13 Jan 2025 17:15:56 +0800 Subject: [PATCH 3/3] chore: format code --- .github/workflows/auto-pr-tdesign-miniprogram.yml | 4 ++-- .github/workflows/auto-pr-tdesign-moible-react.yml | 4 ++-- .github/workflows/auto-pr-tdesign-moible-vue.yml | 4 ++-- .github/workflows/auto-pr-tdesign-react.yml | 4 ++-- .github/workflows/auto-pr-tdesign-vue-next.yml | 4 ++-- .github/workflows/auto-pr-tdesign-vue.yml | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/auto-pr-tdesign-miniprogram.yml b/.github/workflows/auto-pr-tdesign-miniprogram.yml index e41240c4..59319990 100644 --- a/.github/workflows/auto-pr-tdesign-miniprogram.yml +++ b/.github/workflows/auto-pr-tdesign-miniprogram.yml @@ -2,8 +2,8 @@ name: auto-pr-tdesign-miniprogram on: pull_request: - branches: [ develop ] - types: [ closed ] + branches: [develop] + types: [closed] paths: - "packages/vue-next/package.json" jobs: diff --git a/.github/workflows/auto-pr-tdesign-moible-react.yml b/.github/workflows/auto-pr-tdesign-moible-react.yml index bdd30992..c9b90de5 100644 --- a/.github/workflows/auto-pr-tdesign-moible-react.yml +++ b/.github/workflows/auto-pr-tdesign-moible-react.yml @@ -2,8 +2,8 @@ name: auto-pr-tdesign-mobile-react on: pull_request: - branches: [ develop ] - types: [ closed ] + branches: [develop] + types: [closed] paths: - "packages/react/package.json" jobs: diff --git a/.github/workflows/auto-pr-tdesign-moible-vue.yml b/.github/workflows/auto-pr-tdesign-moible-vue.yml index d5abe1ba..5f4159ac 100644 --- a/.github/workflows/auto-pr-tdesign-moible-vue.yml +++ b/.github/workflows/auto-pr-tdesign-moible-vue.yml @@ -2,8 +2,8 @@ name: auto-pr-tdesign-mobile-vue on: pull_request: - branches: [ develop ] - types: [ closed] + branches: [develop] + types: [closed] paths: - "packages/vue-next/package.json" jobs: diff --git a/.github/workflows/auto-pr-tdesign-react.yml b/.github/workflows/auto-pr-tdesign-react.yml index 157fdf97..64d5c36c 100644 --- a/.github/workflows/auto-pr-tdesign-react.yml +++ b/.github/workflows/auto-pr-tdesign-react.yml @@ -2,8 +2,8 @@ name: auto-pr-tdesign-react on: pull_request: - branches: [ develop ] - types: [ closed] + branches: [develop] + types: [closed] paths: - "packages/react/package.json" jobs: diff --git a/.github/workflows/auto-pr-tdesign-vue-next.yml b/.github/workflows/auto-pr-tdesign-vue-next.yml index 3a1812a4..9d961e9e 100644 --- a/.github/workflows/auto-pr-tdesign-vue-next.yml +++ b/.github/workflows/auto-pr-tdesign-vue-next.yml @@ -2,8 +2,8 @@ name: auto-pr-tdesign-vue-next on: pull_request: - branches: [ develop ] - types: [ closed] + branches: [develop] + types: [closed] paths: - "packages/vue-next/package.json" jobs: diff --git a/.github/workflows/auto-pr-tdesign-vue.yml b/.github/workflows/auto-pr-tdesign-vue.yml index 5a66dde7..83736285 100644 --- a/.github/workflows/auto-pr-tdesign-vue.yml +++ b/.github/workflows/auto-pr-tdesign-vue.yml @@ -2,8 +2,8 @@ name: auto-pr-tdesign-vue on: pull_request: - branches: [ develop ] - types: [ closed] + branches: [develop] + types: [closed] paths: - "packages/vue/package.json" jobs: