Skip to content

Commit 1fad73a

Browse files
authored
Merge pull request #4698 from project-koku/release_prod-hccm.20447
Deployment commit for prod-hccm
2 parents 4e35c2c + 3864132 commit 1fad73a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/tag_release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- prod-hccm
66
- prod-ros
77
env:
8-
BRANCH: ${{ github.base_ref }}
8+
BRANCH: ${{ github.ref }}
99

1010
jobs:
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

0 commit comments

Comments
 (0)