Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
zsigmas committed Oct 22, 2024
1 parent 768f444 commit b8ee261
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,8 @@ jobs:
branch_name="rc/$version"
# Check if the branch exists on the remote
if git ls-remote --heads origin "$branch_name" | grep "$branch_name"; then
echo "Branch already exists: $branch_name"
branch_text="A branch named \`$branch_name\` was already present in the repository."
else
branch_text="A new branch named \`$branch_name\` should created for your PR.\n"
fi
branch_text="A new branch named \`$branch_name\` should created for your PR.\n"
echo "Creating PR link"
title=$(echo ${{ github.event.issue.title }} | jq -sRr @uri)
pr_url_text="https://github.com/${{github.repository}}/compare/main...${branch_name}?quick_pull=1&template=pull_request_template.md&title=${title}&labels=release"
Expand Down

0 comments on commit b8ee261

Please sign in to comment.