Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmch91 committed Mar 1, 2024
1 parent 846904f commit 28ac3ad
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/minor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,7 @@ jobs:
echo "Checking for existence of the branch: $release_branch"
remote_branches=$(git ls-remote --heads origin)
echo "$remote_branches" # Check what is actually returned here
filtered_branch=$(echo "$remote_branches" | awk '{print $2}' | grep "^refs/heads/$release_branch$")
echo "Filtered branch result: $filtered_branch"
branch_exists=$(git ls-remote --heads origin | awk '{print $2}' | grep "^refs/heads/$release_branch$")
branch_exists=$(git branch --list $release_branch)
if [ -n "$branch_exists" ]; then
echo "Error: Branch $release_branch already exists. Please check the branch before proceeding."
exit 1
Expand Down

0 comments on commit 28ac3ad

Please sign in to comment.