Skip to content

Commit 322925a

Browse files
Fix release workflow to use PR for next version bump (salesforce#95)
1 parent d6feca4 commit 322925a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/maven-release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,19 @@ jobs:
9898

9999
- name: Update to next development version
100100
run: |
101+
git checkout -b release/prepare-${{ inputs.nextVersion }}
101102
mvn versions:set -DnewVersion=${{ inputs.nextVersion }} -DgenerateBackupPoms=false
102103
git add .
103104
git commit -m "chore: prepare next development iteration ${{ inputs.nextVersion }}"
104-
git push origin main
105+
git push origin release/prepare-${{ inputs.nextVersion }}
106+
107+
- name: Create PR for next version
108+
run: |
109+
gh pr create \
110+
--base main \
111+
--head release/prepare-${{ inputs.nextVersion }} \
112+
--title "chore: prepare next development iteration ${{ inputs.nextVersion }}" \
113+
--body "Automated version bump after release ${{ inputs.releaseVersion }}" \
114+
--assignee ${{ github.actor }}
115+
env:
116+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)