Skip to content

Commit

Permalink
change if
Browse files Browse the repository at this point in the history
  • Loading branch information
rmch91 committed Mar 1, 2024
1 parent 30ff298 commit 846904f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/minor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ 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$")
if [ -n "$branch_exists" ]; then
echo "Error: Branch $release_branch already exists. Please check the branch before proceeding."
Expand Down

0 comments on commit 846904f

Please sign in to comment.