File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,20 @@ branding:
77 icon : " git-commit"
88 color : " purple"
99outputs :
10- version :
10+ version : # old classic next_version
1111 description : " New version"
12+ next_version :
13+ description : " Next version"
14+ next_version_major :
15+ description : " Only the major version of the next version"
16+ next_version_minor :
17+ description : " Only the minor version of the next version"
18+ previous_version :
19+ description : " Version before the bump"
20+ previous_version_major :
21+ description : " Only the major version of the previous version"
22+ previous_version_minor :
23+ description : " Only the minor version of the previous version"
1224inputs :
1325 working_directory :
1426 description : " Change to this directory before running"
Original file line number Diff line number Diff line change 4040
4141PREV_REV=" $( cz version --project) "
4242echo " PREVIOUS_REVISION=${PREV_REV} " >> " $GITHUB_ENV "
43+ echo " previous_version=${REV} " >> " $GITHUB_OUTPUT "
44+
45+ PREV_REV_MAJOR=" $( cz version --project --major) "
46+ echo " PREVIOUS_REVISION_MAJOR=${PREV_REV_MAJOR} " >> " $GITHUB_ENV "
47+ echo " previous_version_major=${REV} " >> " $GITHUB_OUTPUT "
48+ PREV_REV_MINOR=" $( cz version --project --minor) "
49+ echo " PREVIOUS_REVISION_MINOR=${PREV_REV_MINOR} " >> " $GITHUB_ENV "
50+ echo " previous_version_minor=${REV} " >> " $GITHUB_OUTPUT "
51+
4352
4453CZ_CMD=(' cz' )
4554if [[ $INPUT_DEBUG == ' true' ]]; then
@@ -102,6 +111,14 @@ if [[ $REV == "$PREV_REV" ]]; then
102111fi
103112echo " REVISION=${REV} " >> " $GITHUB_ENV "
104113echo " version=${REV} " >> " $GITHUB_OUTPUT "
114+ echo " next_version=${REV} " >> " $GITHUB_OUTPUT "
115+
116+ NEXT_REV_MAJOR=" $( cz version --project --major) "
117+ echo " NEXT_REVISION_MAJOR=${NEXT_REV_MAJOR} " >> " $GITHUB_ENV "
118+ echo " next_version_major=${REV} " >> " $GITHUB_OUTPUT "
119+ NEXT_REV_MINOR=" $( cz version --project --minor) "
120+ echo " NEXT_REVISION_MINOR=${NEXT_REV_MINOR} " >> " $GITHUB_ENV "
121+ echo " next_version_minor=${REV} " >> " $GITHUB_OUTPUT "
105122
106123GITHUB_DOMAIN=${GITHUB_SERVER_URL#*// }
107124CURRENT_BRANCH=" $( git branch --show-current) "
You can’t perform that action at this time.
0 commit comments