Skip to content

Commit

Permalink
fix: checkout main branch before updating version
Browse files Browse the repository at this point in the history
  • Loading branch information
prdnk committed Jan 6, 2025
1 parent 8ed58bf commit 3f63adc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/merge-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f63adc

Please sign in to comment.