Skip to content

Commit

Permalink
chore(ci): add auto pr ci (#134)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
liweijie0812 authored Jan 19, 2025
1 parent 41f225d commit 2feed8f
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/auto-pr-tdesign-miniprogram.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/auto-pr-tdesign-moible-react.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/auto-pr-tdesign-moible-vue.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/auto-pr-tdesign-react.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/auto-pr-tdesign-vue-next.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/auto-pr-tdesign-vue.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 2feed8f

Please sign in to comment.