File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name: prepare-release
6
6
# events but only for the master branch
7
7
on :
8
8
push :
9
- branches : [ 'release/*' ]
9
+ tags : [ 'release/*' ]
10
10
11
11
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
12
jobs :
20
20
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21
21
- uses : actions/checkout@v2
22
22
23
+ - name : Get the version
24
+ id : get_version
25
+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
26
+
23
27
- name : Prepare the release
24
28
run : |
25
- ./scripts/prepare_release.sh
29
+ ./scripts/prepare_release.sh ${{ steps.get_version.outputs.VERSION }}
26
30
27
31
- name : Create Pull Request
28
32
uses :
peter-evans/[email protected]
33
+ # team-reviewers: TODO: set this
34
+ branch : ${{ steps.get_version.outputs.VERSION }}
35
+ title : ' [pre-release] Update changelogs, version [${{ steps.get_version.outputs.VERSION }}]'
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- VERSION=` git rev-parse --abbrev-ref HEAD | cut -f 2 -d /`
3
+ VERSION=` echo $1 | cut -f 2 -d /`
4
4
echo " Using version ${VERSION} "
5
5
6
6
# check the version matches expected versioning e.g
You can’t perform that action at this time.
0 commit comments