From 585a976089e0f1b9a8557b9c768e4dcba5923621 Mon Sep 17 00:00:00 2001 From: alex289 Date: Fri, 26 Apr 2024 13:34:35 +0200 Subject: [PATCH] feat: Make pull request for updated changelog --- .github/workflows/release.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1f5916..3c38cc8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,10 +62,14 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.get_next_version.outputs.version }} - - name: Commit CHANGELOG.md + - name: Create Changelog Pull Request if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }} - uses: stefanzweifel/git-auto-commit-action@v5 + uses: peter-evans/create-pull-request@v6 with: - branch: main - commit_message: 'docs: update CHANGELOG.md for ${{ steps.get_next_version.outputs.version }} [skip ci]' - file_pattern: CHANGELOG.md + token: ${{ secrets.PAT }} + branch: release/${{ steps.get_next_version.outputs.version }} + title: 'docs: update CHANGELOG.md for ${{ steps.get_next_version.outputs.version }}' + commit-message: 'docs: update CHANGELOG.md for ${{ steps.get_next_version.outputs.version }}' + labels: changelog + body: | + This PR updates the CHANGELOG.md file for the release of version ${{ steps.get_next_version.outputs.version }}.