File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Update Changelog
22on :
3- merge_group :
3+ push :
4+ branches :
5+ - release
6+ paths-ignore :
7+ - ' **.md'
48
59
610jobs :
711 calculate_next_version :
12+ name : Calculate next version
813 uses : codenamephp/workflows.common/.github/workflows/calculate-next-version.yml@1
914 update_changelog :
10- uses : codenamephp/workflows.common/.github/workflows/update-changelog.yml@1
15+ name : Update changelog
16+ runs-on : ubuntu-latest
1117 needs : calculate_next_version
12- with :
13- ref : ${{github.ref}}
14- future-release : ${{ needs.calculate_next_version.outputs.version }}
15- release-branch : ${{github.head_ref}}
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v3
21+
22+ - name : Create changelog
23+ uses : charmixer/auto-changelog-action@v1
24+ with :
25+ token : ${{ secrets.GITHUB_TOKEN }}
26+ future_release : ${{ needs.calculate_next_version.outputs.version }}
27+ release_branch : ' release'
28+
29+ - name : Create Pull Request
30+ id : cpr
31+ uses : peter-evans/create-pull-request@v4
32+ with :
33+ token : ${{ secrets.GITHUB_TOKEN }}
34+ commit-message : Update changelog
35+ branch : changelog
36+ delete-branch : true
37+ title : ' [CHANGELOG] Update changelog'
38+
39+
40+ - name : Merge pull request
41+ uses : KeisukeYamashita/auto-pull-request-merge@v1
42+ with :
43+ pullRequestNumber : ${{ steps.cpr.outputs.pull-request-number }}
44+ intervalSeconds : 5
You can’t perform that action at this time.
0 commit comments