File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22name : " Update Changelog"
33
44on :
5- release :
6- types : [released]
7- workflow_dispatch : ~
5+ workflow_run :
6+ workflows :
7+ - Upload Python Package
8+ types :
9+ - completed
810
911permissions :
1012 pull-requests : write
@@ -13,6 +15,7 @@ permissions:
1315jobs :
1416 update :
1517 runs-on : ubuntu-latest
18+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
1619
1720 steps :
1821 - name : Checkout code
@@ -25,11 +28,18 @@ jobs:
2528 with :
2629 latest-version : ${{ github.event.release.tag_name }}
2730 heading-text : ${{ github.event.release.name }}
31+ release-notes : ${{ github.event.release.body }}
2832
2933 - name : Create Pull Request
3034 uses : peter-evans/create-pull-request@v6
3135 with :
3236 branch : docs/changelog-update-${{ github.event.release.tag_name }}
37+ base : develop
3338 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.
3444 add-paths : |
3545 CHANGELOG.md
You can’t perform that action at this time.
0 commit comments