mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
fix: checkout main branch before updating version
This commit is contained in:
@@ -31,6 +31,10 @@ jobs:
|
||||
# Get tag without 'v' prefix
|
||||
TAG_VERSION=${GITHUB_REF#refs/tags/v}
|
||||
|
||||
# Checkout main branch
|
||||
git fetch origin main
|
||||
git checkout main
|
||||
|
||||
# Update version in .cz.toml
|
||||
sed -i "s/^version = \".*\"/version = \"$TAG_VERSION\"/" .cz.toml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user