Skip to content

Commit af4ecf3

Browse files
committed
Remove step to create PR to update version to next one
Signed-off-by: Denis Golovin <dgolovin@redhat.com>
1 parent c490c41 commit af4ecf3

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,6 @@ jobs:
7474
name: ${{ steps.TAG_UTIL.outputs.githubTag }}
7575
draft: true
7676
prerelease: false
77-
- name: Create the PR to bump the version in the main branch (only if we're tagging from main branch)
78-
if: ${{ github.event.inputs.branch == 'main' }}
79-
run: |
80-
git config --local user.name ${{ github.actor }}
81-
git config --local user.email "devtools-team@redhat.com"
82-
CURRENT_VERSION=$(echo "${{ steps.TAG_UTIL.outputs.extVersion }}")
83-
tmp=${CURRENT_VERSION%.*}
84-
minor=${tmp#*.}
85-
bumpedVersion=${CURRENT_VERSION%%.*}.$((minor + 1)).0
86-
bumpedBranchName="bump-to-${bumpedVersion}"
87-
git checkout -b "${bumpedBranchName}"
88-
sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${bumpedVersion}-next\",#g" package.json
89-
git add package.json
90-
git commit -s --amend -m "chore: bump version to ${bumpedVersion}"
91-
git push origin "${bumpedBranchName}"
92-
echo -e "📢 Bump version to ${bumpedVersion}\n\n${{ steps.TAG_UTIL.outputs.extVersion }} has been released.\n\n Time to switch to the new ${bumpedVersion} version 🥳" > /tmp/pr-title
93-
pullRequestUrl=$(gh pr create --title "chore: 📢 Bump version to ${bumpedVersion}" --body-file /tmp/pr-title --head "${bumpedBranchName}" --base "main")
94-
echo "📢 Pull request created: ${pullRequestUrl}"
95-
echo "➡️ Flag the PR as being ready for review"
96-
gh pr ready "${pullRequestUrl}"
97-
echo "🔅 Mark the PR as being ok to be merged automatically"
98-
gh pr merge "${pullRequestUrl}" --auto --rebase
99-
env:
100-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10177

10278
build:
10379
needs: [tag]

0 commit comments

Comments
 (0)