Skip to content

Commit 3f8bc47

Browse files
committed
refactor: update
1 parent 498678c commit 3f8bc47

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/create-pr.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,20 @@ jobs:
4848
- name: Create Pull Request
4949
if: env.VERSION_CHANGED == 'true' && env.PR_EXISTS == '0'
5050
run: |
51+
git config --global user.name "GitHub Actions"
52+
git config --global user.email "[email protected]"
53+
54+
git fetch origin main
55+
git checkout -b release/${{ env.VERSION }}
56+
git push origin release/${{ env.VERSION }}
57+
5158
gh pr create \
52-
--title "🚀 Release v${{ env.VERSION }}" \
53-
--body "## 🔄 Release v${{ env.VERSION }}\n\nThis PR promotes changes from \`canary\` to \`main\` for version v${{ env.VERSION }}.\n\n### 🔍 Changes Include:\n- Version bump to v${{ env.VERSION }}\n- All changes from canary branch\n\n### ✅ Pre-merge Checklist:\n- [ ] All tests passing\n- [ ] Documentation updated\n- [ ] Docker images built and tested\n\n> 🤖 This PR was automatically generated from the canary branch" \
59+
--title "🚀 Release ${{ env.VERSION }}" \
60+
--body "## 🔄 Release ${{ env.VERSION }}\n\nThis PR promotes changes from \`canary\` to \`main\` for version v${{ env.VERSION }}.\n\n### 🔍 Changes Include:\n- Version bump to v${{ env.VERSION }}\n- All changes from canary branch\n\n### ✅ Pre-merge Checklist:\n- [ ] All tests passing\n- [ ] Documentation updated\n- [ ] Docker images built and tested\n\n> 🤖 This PR was automatically generated by [GitHub Actions](https://github.com/actions)." \
5461
--base main \
55-
--head canary \
62+
--head release/${{ env.VERSION }} \
5663
--draft \
64+
--label "release" --label "automated pr" \
5765
--reviewer siumauricio \
5866
--assignee siumauricio
5967
env:

0 commit comments

Comments
 (0)