Skip to content

Commit 769a4d2

Browse files
CopilotMaStr
andauthored
chore: bump_version workflow creates PR when running on main (#300)
* Initial plan * chore: bump_version workflow creates PR when running on main branch Co-authored-by: MaStr <1036501+MaStr@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MaStr <1036501+MaStr@users.noreply.github.com>
1 parent 6e1e27e commit 769a4d2

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/bump_version.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,19 @@ jobs:
8080
echo "Version was bumped from ${{ steps.bump.outputs.previous-version }} to ${{ steps.bump.outputs.current-version }}!"
8181
8282
- name: Push changes
83-
if: steps.bump.outputs.bumped == 'true'
83+
if: steps.bump.outputs.bumped == 'true' && github.ref_name != 'main'
8484
run: |
8585
git push
8686
git push --tags
87+
88+
- name: Create Pull Request
89+
if: steps.bump.outputs.bumped == 'true' && github.ref_name == 'main'
90+
uses: peter-evans/create-pull-request@v8
91+
with:
92+
title: "chore: bump version to ${{ steps.bump.outputs.current-version }}"
93+
body: |
94+
Automated version bump from `${{ steps.bump.outputs.previous-version }}` to `${{ steps.bump.outputs.current-version }}`.
95+
96+
Bump type: `${{ inputs.bump-type }}`
97+
branch: bump-version/${{ steps.bump.outputs.current-version }}
98+
base: main

0 commit comments

Comments
 (0)