You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: release-trigger uses release branch + PR instead of direct push to main (#1733)
* fix: use release branch + PR instead of direct push to main
Bypass branch protection rules by pushing version bump to a
chore/release-vX.Y.Z branch, tagging that commit, then opening
an auto PR to merge back into main. The release workflow still
triggers immediately from the tag push.
* fix: remove --label automated from gh pr create (label does not exist)
echo "Tag ${{ steps.version.outputs.tag }} created and pushed"
140
+
echo "Branch ${{ env.branch }} and tag ${{ steps.version.outputs.tag }} pushed"
141
+
142
+
- name: Open pull request
143
+
env:
144
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145
+
run: |
146
+
gh pr create \
147
+
--base main \
148
+
--head "${{ env.branch }}" \
149
+
--title "chore: bump version to ${{ steps.version.outputs.version }}" \
150
+
--body "Automated version bump to ${{ steps.version.outputs.version }}.
151
+
152
+
This PR was created by the Release Trigger workflow. The git tag \`${{ steps.version.outputs.tag }}\` has already been pushed and the release artifacts are being built.
153
+
154
+
Merge this PR to record the version bump and changelog update on \`main\`."
136
155
137
156
- name: Summary
138
157
run: |
139
158
echo "✅ Version bumped to ${{ steps.version.outputs.version }}"
140
159
echo "✅ Tag ${{ steps.version.outputs.tag }} created and pushed"
141
-
echo "🚀 Release workflow will now build artifacts automatically"
160
+
echo "✅ PR opened to merge version bump into main"
161
+
echo "🚀 Release workflow is building artifacts from the tag"
0 commit comments