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
11 changes: 6 additions & 5 deletions .github/workflows/medcat-v2_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ jobs:

# Get the tag without the 'v' and strip the patch version
VERSION_TAG="${GITHUB_REF#refs/tags/}"
# NOTE: branch name is in line with version tag, except for the patch version
BRANCH_NAME="${VERSION_TAG%.*}" # This removes the patch version (everything after the second dot)

# set version tag as output for later use
echo "version_tag=$VERSION_TAG" >> $GITHUB_OUTPUT

# Convert to lowercase first, then strip
VERSION_TAG_LOWER="${VERSION_TAG,,}"

# NOTE: branch name is in line with version tag, except for the patch version
BRANCH_NAME="${VERSION_TAG_LOWER%.*}" # This removes the patch version (everything after the second dot)

# set version tag as output for later use
echo "version_tag=$VERSION_TAG_LOWER" >> $GITHUB_OUTPUT

# only the version (no medcat/v prefix)
VERSION_ONLY="${VERSION_TAG_LOWER#medcat/v}"
echo "version_only=$VERSION_ONLY" >> $GITHUB_OUTPUT
Expand Down