File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Create new release"
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' The version you want to release.'
8+ required : true
9+
10+ jobs :
11+ draft-new-release :
12+ name : Create new release
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Create release branch
18+ run : git checkout -b release/${{ github.event.inputs.version }}
19+
20+ - name : Initialize mandatory git config
21+ uses : fregante/setup-git-user@v1
22+
23+ - name : Bump version in package.json
24+ run : yarn version --new-version ${{ github.event.inputs.version }} --no-git-tag-version
25+
26+ - name : Commit manifest files
27+ id : make-commit
28+ run : |
29+ git add package.json
30+ git commit --message "Prepare release 1.22.1"
31+
32+ echo "::set-output name=commit::$(git rev-parse HEAD)"
33+
34+ - name : Push changes
35+ uses : ad-m/github-push-action@master
36+ with :
37+ github_token : ${{ secrets.GITHUB_TOKEN }}
38+ branch : main
39+
40+ - name : Merge main into develop branch
41+ uses :
thomaseizinger/[email protected] 42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ with :
45+ head : main
46+ base : develop
47+ title : Merge main into develop branch
48+ body : |
49+ This PR merges the main branch back into develop.
50+ This happens to ensure that the updates that happend on the release branch, i.e. manifest updates are also present on the develop branch.
51+
You can’t perform that action at this time.
0 commit comments