diff --git a/.github/workflows/changelog-release-update.yml b/.github/workflows/changelog-release-update.yml index 68621cb..9ba69d1 100644 --- a/.github/workflows/changelog-release-update.yml +++ b/.github/workflows/changelog-release-update.yml @@ -2,9 +2,11 @@ name: "Update Changelog" on: - release: - types: [released] - workflow_dispatch: ~ + workflow_run: + workflows: + - Upload Python Package + types: + - completed permissions: pull-requests: write @@ -13,12 +15,13 @@ permissions: jobs: update: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout code uses: actions/checkout@v4 with: - ref: develop + ref: ${{ github.event.release.target_commitish }} - name: Update Changelog uses: stefanzweifel/changelog-updater-action@v1 @@ -31,6 +34,12 @@ jobs: uses: peter-evans/create-pull-request@v6 with: branch: docs/changelog-update-${{ github.event.release.tag_name }} + base: develop title: '[Changelog] Update to ${{ github.event.release.tag_name }}' + body: | + This PR updates the changelog to include the changes in the latest release. + + > [!CAUTION] + > Merge DO NOT squash to correctly update the tag version of `develop` branch. add-paths: | CHANGELOG.md