We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4040cd3 commit c3b6f9fCopy full SHA for c3b6f9f
actions/version_number/action.yaml
@@ -79,6 +79,14 @@ runs:
79
else
80
echo "new_version=$NBGV_SimpleVersion-SNAPSHOT" >> $GITHUB_OUTPUT
81
fi
82
+ elif [[ "${{ inputs.type }}" == "Patch" ]]; then
83
+ CURRENT_PATCH=$(echo $NBGV_SimpleVersion | awk -F. '{print $3}')
84
+ HEIGHT=$NBGV_VersionHeight
85
+ if [[ $HEIGHT -lt 1 ]]; then
86
+ HEIGHT=1
87
+ fi
88
+ NEW_PATCH=$(($CURRENT_PATCH + $HEIGHT))
89
+ echo "new_version=$NBGV_MajorMinorVersion.$NEW_PATCH" >> $GITHUB_OUTPUT
90
elif [[ "$BRANCH_NAME" =~ ^release.* ]]; then
91
git fetch --tags --all
92
# Find the base tag that the branch derived from
0 commit comments