Skip to content

Commit

Permalink
patch check-versioning-lib-release.sh (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash authored May 23, 2024
1 parent c8424b6 commit 296938a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions check-versioning-lib-release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

git fetch origin main
git fetch origin dev
git fetch --all

crates=(
"utils/buffer"
Expand Down Expand Up @@ -36,6 +35,10 @@ crates=(
for crate in "${crates[@]}"; do
cd "$crate"

# Check if the branches exist locally, if not, create them
git show-ref --verify --quiet refs/remotes/origin/main || { echo "Branch 'main' not found."; exit 1; }
git show-ref --verify --quiet refs/remotes/origin/dev || { echo "Branch 'dev' not found."; exit 1; }

# Check if there were any changes between dev and main
git diff --quiet "origin/dev" "origin/main" -- .
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 296938a

Please sign in to comment.