Skip to content

Commit

Permalink
Merge pull request #161 from Graur/is-branch-exists
Browse files Browse the repository at this point in the history
added checking current branch exists
  • Loading branch information
yegor256 authored Jul 7, 2023
2 parents 83e4d67 + a811c00 commit 8c91ce4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true
git_push_gpgsign: ""
- name: Check if branch exists
run: |
branch_exists=$(git ls-remote --exit-code --heads origin ${{ env.eo_lib_version }} || echo "branch_not_found")
echo "is_exist=$branch_exists" >> "$GITHUB_ENV"
- name: create pull request
uses: peter-evans/create-pull-request@v5
with:
Expand All @@ -43,3 +47,4 @@ jobs:
base: master
branch: update-${{ env.eo_lib_version }}
delete-branch: true
if: ${{ env.is_exist }} == 'branch_not_found'

0 comments on commit 8c91ce4

Please sign in to comment.