Skip to content

Commit 8d927ea

Browse files
committed
fix: remove step that creates PR to increment the version
cannot be used right now because of missing permissions for github actions. Signed-off-by: Denis Golovin <dgolovin@redhat.com>
1 parent bcf5f74 commit 8d927ea

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -75,31 +75,6 @@ jobs:
7575
draft: true
7676
prerelease: true
7777

78-
- name: Create the PR to bump the version in the main branch (only if we're tagging from main branch)
79-
if: ${{ github.event.inputs.branch == 'main' }}
80-
run: |
81-
git config --local user.name ${{ github.actor }}
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-
git checkout ${{ steps.TAG_UTIL.outputs.githubTag }}
100-
env:
101-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102-
10378
build:
10479
needs: [tag]
10580
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)