Skip to content
Open
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
4 changes: 2 additions & 2 deletions get-jira-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ runs:
id: get_version
shell: bash
run: |
# Extract everything up to the third dot (major.minor.patch)
VERSION=$(echo "$RELEASE_VERSION" | cut -d '.' -f 1-3)
# Strip build metadata (e.g. '+80217' from '5.2.3+80217'), then take major.minor.patch
VERSION=$(echo "$RELEASE_VERSION" | cut -d '+' -f 1 | cut -d '.' -f 1-3)

# Remove trailing '.0' if it exists (to match Jira version format)
JIRA_VERSION_NAME=$(echo "$VERSION" | sed 's/\.0$//')
Expand Down
Loading