Skip to content

Commit

Permalink
Refactor release script to respect SC2001 and SC2086
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Jun 19, 2024
1 parent 6709e64 commit 40a7dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ git tag -a "$new_tag" -m "$new_tag Release"
echo -e "${GREEN}Tagged: $new_tag${OFF}"

# Tag major version
new_major_tag=$(echo $new_tag | sed 's/\(v[0-9]\+\).*/\1/')
git tag -fa $new_major_tag -m "Update $new_major_tag tag"
new_major_tag=${new_tag%%.*}
git tag -fa "$new_major_tag" -m "Update $new_major_tag tag"
echo -e "${GREEN}Tagged: $new_major_tag${OFF}"

# Push the new tag to the remote
Expand Down

0 comments on commit 40a7dc5

Please sign in to comment.