Skip to content

Commit f3b785d

Browse files
authored
ci(changelog): use PR instead of direct push to master (#7)
1 parent cf5549e commit f3b785d

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/changelog.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,18 @@ jobs:
2626
token: ${{ github.token }}
2727
tag: ${{ github.ref_name }}
2828

29-
- name: Commit CHANGELOG.md
30-
uses: stefanzweifel/git-auto-commit-action@v4
29+
- name: Create Pull Request
30+
uses: peter-evans/create-pull-request@v7
3131
with:
32-
branch: master
33-
commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]"
34-
file_pattern: CHANGELOG.md
32+
token: ${{ github.token }}
33+
commit-message: "docs: update CHANGELOG.md for ${{ github.ref_name }}"
34+
title: "docs: update CHANGELOG.md for ${{ github.ref_name }}"
35+
body: |
36+
Auto-generated changelog update for release ${{ github.ref_name }}.
37+
38+
This PR was automatically created by the changelog workflow.
39+
branch: changelog/${{ github.ref_name }}
40+
base: master
41+
add-paths: CHANGELOG.md
42+
labels: documentation,automated
43+
delete-branch: true

0 commit comments

Comments
 (0)