diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index 3b8afa183..fcdbdb5fc 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -48,12 +48,20 @@ jobs: - name: Create Pull Request if: env.VERSION_CHANGED == 'true' && env.PR_EXISTS == '0' run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + + git fetch origin main + git checkout -b release/${{ env.VERSION }} + git push origin release/${{ env.VERSION }} + gh pr create \ - --title "🚀 Release v${{ env.VERSION }}" \ - --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" \ + --title "🚀 Release ${{ env.VERSION }}" \ + --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)." \ --base main \ - --head canary \ + --head release/${{ env.VERSION }} \ --draft \ + --label "release" --label "automated pr" \ --reviewer siumauricio \ --assignee siumauricio env: