File tree 2 files changed +23
-5
lines changed 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Compile code modules
2
2
3
3
on :
4
+ push :
5
+ branches :
6
+ - main
4
7
release :
5
8
types : [released]
6
9
39
42
- name : Create Pull Request
40
43
uses : peter-evans/create-pull-request@v5
41
44
with :
45
+ token : ${{ secrets.GITHUB_TOKEN }}
42
46
branch : build-output-${{ github.run_id }}
43
47
base : main
44
48
title : " Build output for release ${{ github.sha }}"
Original file line number Diff line number Diff line change 24
24
latest-version : ${{ github.event.release.name }}
25
25
release-notes : ${{ github.event.release.body }}
26
26
27
- - name : Commit updated CHANGELOG
28
- uses : stefanzweifel/git-auto-commit-action@v5
27
+ - name : Create a new branch
28
+ run : |
29
+ git config --global user.name "github-actions[bot]"
30
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
31
+ git checkout -b update-changelog-${{ github.run_id }}
32
+ git add CHANGELOG.md
33
+ git commit -m "Update CHANGELOG for release ${{ github.event.release.name }}"
34
+
35
+ - name : Push changes to new branch
36
+ run : git push origin update-changelog-${{ github.run_id }}
37
+
38
+ - name : Create Pull Request
39
+ uses : peter-evans/create-pull-request@v5
29
40
with :
30
- branch : main
31
- commit_message : Update CHANGELOG
32
- file_pattern : CHANGELOG.md
41
+ token : ${{ secrets.GITHUB_TOKEN }}
42
+ branch : update-changelog-${{ github.run_id }}
43
+ base : main
44
+ title : " Update CHANGELOG for release ${{ github.event.release.name }}"
45
+ body : " This PR updates the CHANGELOG with details from release ${{ github.event.release.name }}."
46
+ labels : changelog
You can’t perform that action at this time.
0 commit comments