@@ -3,73 +3,31 @@ name: 📦 Bump Workflow
33on :
44 workflow_dispatch :
55 inputs :
6- temp_branch_name :
7- description : |
8- The branch to do the work in.
9- required : true
10-
116 new_version :
127 description : |
13- The version to update to (eg: 2.6.0 or 2.6.0-dev).
8+ The version to update to (eg: 2.6.0 or 2.6.0-dev do not include `v` ).
149 required : true
15-
16-
1710jobs :
18- setup-branch :
19- runs-on : ubuntu-latest
20- name : ➕ Create Branch
21- needs : setup
22- steps :
23- - name : Checkout
24- uses : actions/checkout@v2
25-
26- - name : Create Branch
27- shell : pwsh
28- run : |
29- git checkout -b ${{ github.event.inputs.temp_branch_name }}
30- git push --set-upstream origin ${{ github.event.inputs.temp_branch_name }}
3111
3212 apply-version-bump :
3313 runs-on : ubuntu-latest
34- name : 🎇 Apply Version Bump
14+ name : Apply Version Bump
3515 steps :
3616 - name : Checkout
3717 uses : actions/checkout@v2
38- with :
39- ref : ${{ github.event.inputs.temp_branch_name }}
40-
4118
4219 - name : Apply Bump
4320 shell : bash
4421 run : |
45- find . -name 'qlpack.yml' | grep -v './codeql_modules' | grep -v './scripts' | xargs sed -i 's/^version.*$/version: ${{ github.event.inputs.new_version }}/'
46-
47-
48- - name : Push Performance Data
49- uses : EndBug/add-and-commit@v8
50- with :
51- add : ' .'
52- pull : ' --rebase --autostash'
53- author_name : John Singleton
54- author_email : jsinglet@github.com
55- default_author : github_actor
56- message : ' Version bump to ${{ github.event.inputs.new_version }}.'
57- pathspec_error_handling : ignore
58- push : true
59-
60- create-pr :
61- runs-on : ubuntu-latest
62- name : 🎇 Create PR
63- steps :
64- - name : Checkout
65- uses : actions/checkout@v2
66- with :
67- ref : ${{ github.event.inputs.temp_branch_name }}
68-
69- - name : Create PR
70- shell : pwsh
71- run : |
72- gh pr create -b "Bump to Version ${{ github.event.inputs.new_version}}" -t "Bump to Version ${{ github.event.inputs.new_version}}"
73- env :
74- GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
75-
22+ bash ./scripts/bump_version.sh ${{ github.event.inputs.new_version }}
23+
24+ - uses : actions/checkout@v3
25+ - name : Create Pull Request
26+ uses : peter-evans/create-pull-request@v4
27+ with :
28+ title : " Release Engineering: Version bump to ${{ github.event.inputs.new_version }}."
29+ body : " This PR updates codeql-coding-standards to version ${{ github.event.inputs.new_version }}."
30+ commit-message : " Version bump to ${{ github.event.inputs.new_version }}."
31+ team-reviewers : github/codeql-coding-standards
32+ delete-branch : true
33+ branch : " codeql/version-bump-${{ github.event.inputs.new_version }}"
0 commit comments