File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 55 - prod-hccm
66 - prod-ros
77env :
8- BRANCH : ${{ github.base_ref }}
8+ BRANCH : ${{ github.ref }}
99
1010jobs :
1111 tag_release :
@@ -25,16 +25,18 @@ jobs:
2525 MINOR_VERSION=0
2626 case $PREV_RELEASE in
2727 *"$DATE"*)
28- MINOR_VERSION="$PREV_RELEASE" | cut -d'.' -f5
28+ MINOR_VERSION=$(echo "$PREV_RELEASE" | cut -d'.' -f5)
2929 MINOR_VERSION=$((MINOR_VERSION+1))
3030 ;;
3131 *)
3232 MINOR_VERSION=0
3333 ;;
3434 esac
35- TAG="r.$DATE.$MINOR_VERSION"
35+ BRANCH_BASE=$( echo $BRANCH | cut -d'/' -f3)
36+ APP_PREFIX=$(echo "$BRANCH_BASE" | cut -d'-' -f2)
37+ TAG="r-$APP_PREFIX.$DATE.$MINOR_VERSION"
3638 git config --local user.email "[email protected] " 3739 git config --local user.name "Cost Management Release Action"
38- git log $(git tag --list | tail -1)..${{ env.BRANCH }} | git tag -a $TAG -F -
40+ git log $(git tag --list | tail -1)..$BRANCH_BASE | git tag -a $TAG -F -
3941 git push origin $TAG
4042 shell : bash
You can’t perform that action at this time.
0 commit comments