diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index ec0a7bf..e05ce06 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -5,7 +5,8 @@ on: types: [released] permissions: - contents: write + contents: write + pull-requests: write jobs: update: @@ -23,11 +24,13 @@ jobs: latest-version: ${{ github.event.release.name }} release-notes: ${{ github.event.release.body }} - - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5.0.2 with: - branch: main - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md - - + commit-message: Update CHANGELOG + branch: create-pull-request/changelog-updater-action + delete-branch: true + title: 'Update Changelog' + body: | + Update Changelog + - Updated with latest changelog