-
Notifications
You must be signed in to change notification settings - Fork 325
44 lines (37 loc) · 1.12 KB
/
Copy pathauto-changelog.yml
File metadata and controls
44 lines (37 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: auto-changelog
on:
pull_request:
types: [opened]
pull_request_review:
types: [submitted]
issue_comment:
types: [edited]
jobs:
changelog:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.event.pull_request.number }} > pr-id.txt
- uses: actions/upload-artifact@v4
with:
name: pr-id
path: pr-id.txt
retention-days: 5
comment-release-changelog:
if: github.event.pull_request && startsWith(github.head_ref, 'release/')
runs-on: ubuntu-latest
steps:
- name: auto-changelog
uses: TDesignOteam/flow-pilot-action@develop
with:
token: ${{ secrets.TDESIGN_BOT_TOKEN }}
packages: 'tdesign-miniprogram,@tdesign/uniapp,@tdesign/uniapp-chat'
commit-changelog:
if: github.event.issue.pull_request
runs-on: ubuntu-latest
steps:
- name: auto-changelog
uses: TDesignOteam/flow-pilot-action@develop
with:
token: ${{ secrets.TDESIGN_BOT_TOKEN }}
packages: 'tdesign-miniprogram,@tdesign/uniapp,@tdesign/uniapp-chat'