From 2d5b61e04635691f576f9a0a197267ffb2c70d1d Mon Sep 17 00:00:00 2001 From: Dilyara Bareeva <44092813+dilyabareeva@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:57:17 +0100 Subject: [PATCH] fix: release.yml created a version bump PR --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8b1332..e397c59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,3 +30,17 @@ jobs: changelog: true tag: true + - name: Push changes to a new branch and create a PR + run: | + # Create a new branch from main + git checkout -b version-bump-${{ steps.release.outputs.version }} + + # Push changes to the new branch + git push origin version-bump-${{ steps.release.outputs.version }} + + # Create a pull request using GitHub CLI (gh) + gh pr create --base main --head version-bump-${{ steps.release.outputs.version }} --title "chore: Version bump to ${{ steps.release.outputs.version }}" --body "Automated version bump" + + env: + GITHUB_TOKEN: ${{ secrets.QUANDA_ADMIN }} +