Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- prod-hccm
- prod-ros
env:
BRANCH: ${{ github.base_ref }}
BRANCH: ${{ github.ref }}

jobs:
tag_release:
Expand All @@ -25,16 +25,18 @@ jobs:
MINOR_VERSION=0
case $PREV_RELEASE in
*"$DATE"*)
MINOR_VERSION="$PREV_RELEASE" | cut -d'.' -f5
MINOR_VERSION=$(echo "$PREV_RELEASE" | cut -d'.' -f5)
MINOR_VERSION=$((MINOR_VERSION+1))
;;
*)
MINOR_VERSION=0
;;
esac
TAG="r.$DATE.$MINOR_VERSION"
BRANCH_BASE=$( echo $BRANCH | cut -d'/' -f3)
APP_PREFIX=$(echo "$BRANCH_BASE" | cut -d'-' -f2)
TAG="r-$APP_PREFIX.$DATE.$MINOR_VERSION"
git config --local user.email "[email protected]"
git config --local user.name "Cost Management Release Action"
git log $(git tag --list | tail -1)..${{ env.BRANCH }} | git tag -a $TAG -F -
git log $(git tag --list | tail -1)..$BRANCH_BASE | git tag -a $TAG -F -
git push origin $TAG
shell: bash
Loading