File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 2
2
name : " Update Changelog"
3
3
4
4
on :
5
- release :
6
- types : [released]
7
- workflow_dispatch : ~
5
+ workflow_run :
6
+ workflows :
7
+ - Upload Python Package
8
+ types :
9
+ - completed
8
10
9
11
permissions :
10
12
pull-requests : write
@@ -13,6 +15,7 @@ permissions:
13
15
jobs :
14
16
update :
15
17
runs-on : ubuntu-latest
18
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
16
19
17
20
steps :
18
21
- name : Checkout code
@@ -25,11 +28,18 @@ jobs:
25
28
with :
26
29
latest-version : ${{ github.event.release.tag_name }}
27
30
heading-text : ${{ github.event.release.name }}
31
+ release-notes : ${{ github.event.release.body }}
28
32
29
33
- name : Create Pull Request
30
34
uses : peter-evans/create-pull-request@v6
31
35
with :
32
36
branch : docs/changelog-update-${{ github.event.release.tag_name }}
37
+ base : develop
33
38
title : ' [Changelog] Update to ${{ github.event.release.tag_name }}'
39
+ body : |
40
+ This PR updates the changelog to include the changes in the latest release.
41
+
42
+ > [!CAUTION]
43
+ > Merge DO NOT squash to correctly update the tag version of `develop` branch.
34
44
add-paths : |
35
45
CHANGELOG.md
You can’t perform that action at this time.
0 commit comments