Skip to content

Commit

Permalink
Fix operations if branch exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Roux committed Mar 19, 2024
1 parent 736f45c commit 2fb7892
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ jobs:
if [[ $branch_exist -eq 0 ]];
then
git checkout -b release-$new_version
git add composer.json
git commit -m 'Bump version number for release'
git push --set-upstream origin release-$new_version
else
git fetch origin
git checkout release-$new_version
git pull --rebase
fi
git add composer.json
git commit -m 'Bump version number for release'
git push --set-upstream origin release-$new_version
pr_exists=`gh pr list -H release-$new_version | wc -l`
if [[ $pr_exists -eq 0 ]];
then
Expand Down

0 comments on commit 2fb7892

Please sign in to comment.