From 2feed8f6e9d5b67921eaa07ce985a9368a0e2737 Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Sun, 19 Jan 2025 17:18:43 +0800 Subject: [PATCH] chore(ci): add auto pr ci (#134) * chore(ci): add auto pr ci * chore(ci): TDESIGN_BOT_TOKEN * chore: format code * chore: update auto pr * chore: update auto pr * chore: update auto pr * chore: update auto pr * chore: format code --- .../workflows/auto-pr-tdesign-miniprogram.yml | 22 +++++++++++++++++++ .../auto-pr-tdesign-moible-react.yml | 22 +++++++++++++++++++ .../workflows/auto-pr-tdesign-moible-vue.yml | 22 +++++++++++++++++++ .github/workflows/auto-pr-tdesign-react.yml | 22 +++++++++++++++++++ .../workflows/auto-pr-tdesign-vue-next.yml | 22 +++++++++++++++++++ .github/workflows/auto-pr-tdesign-vue.yml | 22 +++++++++++++++++++ 6 files changed, 132 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..61c8ee1d --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-miniprogram.yml @@ -0,0 +1,22 @@ +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 + steps: + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Auto PR + uses: TDesignOteam/tdesign-pr-trigger-action@develop + with: + pr_number: ${{ github.event.pull_request.number }} + trigger: /pr-miniprogram + token: ${{ secrets.TDESIGN_BOT_TOKEN }} \ 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..39787976 --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-moible-react.yml @@ -0,0 +1,22 @@ +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 + steps: + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Auto PR + uses: TDesignOteam/tdesign-pr-trigger-action@develop + with: + pr_number: ${{ github.event.pull_request.number }} + trigger: /pr-mobile-react + token: ${{ secrets.TDESIGN_BOT_TOKEN }} \ 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..2b4a2563 --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-moible-vue.yml @@ -0,0 +1,22 @@ +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 + steps: + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Auto PR + uses: TDesignOteam/tdesign-pr-trigger-action@develop + with: + pr_number: ${{ github.event.pull_request.number }} + trigger: /pr-mobile-vue + token: ${{ secrets.TDESIGN_BOT_TOKEN }} \ 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..50738abe --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-react.yml @@ -0,0 +1,22 @@ +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 + steps: + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Auto PR tdesign-miniprogram + uses: TDesignOteam/tdesign-pr-trigger-action@develop + with: + pr_number: ${{ github.event.pull_request.number }} + trigger: /pr-react + token: ${{ secrets.TDESIGN_BOT_TOKEN }} \ 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..ee5caa6d --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-vue-next.yml @@ -0,0 +1,22 @@ +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 + steps: + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Auto PR tdesign-miniprogram + uses: TDesignOteam/tdesign-pr-trigger-action@develop + with: + pr_number: ${{ github.event.pull_request.number }} + trigger: /pr-vue-next + token: ${{ secrets.TDESIGN_BOT_TOKEN }} \ 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..586a376b --- /dev/null +++ b/.github/workflows/auto-pr-tdesign-vue.yml @@ -0,0 +1,22 @@ +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 + steps: + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Auto PR tdesign-miniprogram + uses: TDesignOteam/tdesign-pr-trigger-action@develop + with: + pr_number: ${{ github.event.pull_request.number }} + trigger: /pr-vue + token: ${{ secrets.TDESIGN_BOT_TOKEN }} \ No newline at end of file