Skip to content

Commit

Permalink
add release changes
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Feb 6, 2024
1 parent bfe8cd8 commit 399c1e7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
#!/usr/bin/env sh
cargo workspaces version --all --exact --no-individual-tags

# Get the current branch name
current_branch=$(git rev-parse --abbrev-ref HEAD)

branch_pattern="^v[0-9]+\.[0-9]+$"

if [[ $current_branch =~ $branch_pattern ]] || [ "$current_branch" = "master" ]; then
# If the current branch is a version branch or master, run the cargo workspaces version command
cargo workspaces version --all --exact --no-individual-tags --allow-branch $current_branch
else
echo "Current branch does not match the allowed patterns."
fi

0 comments on commit 399c1e7

Please sign in to comment.