File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 20
20
uses : actions/checkout@v4
21
21
with :
22
22
fetch-depth : 0
23
- fetch-tags : true
24
23
25
24
- name : Checkout on existing release branch
26
25
run : |
@@ -29,17 +28,13 @@ jobs:
29
28
- name : Extract tag versions
30
29
run : |
31
30
lastTag=$(git describe --tags --abbrev=0)
32
- echo $lastTag
33
31
regex="v([0-9]+).([0-9]+).([0-9]+)"
34
32
if [[ $lastTag =~ $regex ]]
35
33
then
36
- echo "matching done"
37
34
major=${BASH_REMATCH[1]}
38
35
minor=${BASH_REMATCH[2]}
39
36
patch=${BASH_REMATCH[3]}
40
- echo $major.$minor.$patch
41
- ((patch++))
42
- echo $major.$minor.$patch
37
+ ((++patch))
43
38
echo "GITHUB_MAJOR_VERSION=$major" >> $GITHUB_ENV
44
39
echo "GITHUB_MINOR_VERSION=$minor" >> $GITHUB_ENV
45
40
echo "GITHUB_PATCH_VERSION=$patch" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments