mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
fix: checkout main branch before updating version
This commit is contained in:
parent
8ed58bf51c
commit
3f63adc411
4
.github/workflows/merge-post.yml
vendored
4
.github/workflows/merge-post.yml
vendored
@ -31,6 +31,10 @@ jobs:
|
|||||||
# Get tag without 'v' prefix
|
# Get tag without 'v' prefix
|
||||||
TAG_VERSION=${GITHUB_REF#refs/tags/v}
|
TAG_VERSION=${GITHUB_REF#refs/tags/v}
|
||||||
|
|
||||||
|
# Checkout main branch
|
||||||
|
git fetch origin main
|
||||||
|
git checkout main
|
||||||
|
|
||||||
# Update version in .cz.toml
|
# Update version in .cz.toml
|
||||||
sed -i "s/^version = \".*\"/version = \"$TAG_VERSION\"/" .cz.toml
|
sed -i "s/^version = \".*\"/version = \"$TAG_VERSION\"/" .cz.toml
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user