From b8ee261af548b9185e947f761834faf1099a9c3d Mon Sep 17 00:00:00 2001 From: Luis Moris Fernandez Date: Tue, 22 Oct 2024 18:52:33 +0200 Subject: [PATCH] a --- .github/workflows/release_pr.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release_pr.yml b/.github/workflows/release_pr.yml index 8ceccdd..53be87d 100644 --- a/.github/workflows/release_pr.yml +++ b/.github/workflows/release_pr.yml @@ -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"