File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch : # Allows manual trigger
7
7
8
8
permissions :
9
- contents : write # Minimum required permission for file changes and PR creation
10
- pull-requests : write # Required for creating PRs
9
+ contents : write # Required for file changes and auto-merge
10
+ pull-requests : write # Required for creating PRs and auto-merge
11
11
12
12
jobs :
13
13
update-changelog :
49
49
- name : Create Pull Request
50
50
if : steps.generate.outputs.changes == 'true'
51
51
uses : peter-evans/create-pull-request@v4
52
+ id : create-pr
52
53
with :
53
54
token : ${{ secrets.GITHUB_TOKEN }}
54
55
commit-message : " chore: update CHANGELOG.md"
58
59
59
60
- Generated using git-chglog
60
61
- Triggered by: ${{ github.event_name }}
62
+ - Auto-merge enabled
61
63
branch : update-changelog-${{ github.run_id }}
62
64
base : main
63
- delete-branch : true
65
+ delete-branch : true # This will delete the branch after merge
64
66
labels : |
65
67
documentation
66
68
automated-pr
69
+
70
+ - name : Enable Auto-merge
71
+ if : steps.generate.outputs.changes == 'true'
72
+ run : |
73
+ gh pr merge --auto --merge "${{ steps.create-pr.outputs.pull-request-number }}"
74
+ env :
75
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments