mirror of
https://github.com/booklore-app/booklore.git
synced 2026-02-18 00:17:53 +01:00
Fix RC flow
This commit is contained in:
4
.github/workflows/release-pipeline.yml
vendored
4
.github/workflows/release-pipeline.yml
vendored
@@ -246,8 +246,8 @@ jobs:
|
||||
rc_number=$(git rev-list --count HEAD 2>/dev/null || echo "1")
|
||||
fi
|
||||
|
||||
# Ensure RC number is at least 1
|
||||
rc_number=$((rc_number > 0 ? rc_number : 1))
|
||||
# Convert commit count to RC number (0 commits = rc.1, 1 commit = rc.2, etc.)
|
||||
rc_number=$((rc_number + 1))
|
||||
|
||||
rc_tag="v${full_version}-rc.${rc_number}"
|
||||
short_sha=$(git rev-parse --short HEAD)
|
||||
|
||||
Reference in New Issue
Block a user