We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41fadbf commit faf1a34Copy full SHA for faf1a34
1 file changed
.github/workflows/release.yml
@@ -45,8 +45,8 @@ jobs:
45
steps:
46
- name: Verify branch
47
run: |
48
- if [ "${{ github.ref }}" != "refs/heads/main" ]; then
49
- echo "❌ Error: Releases can only be triggered from main branch"
+ if [ "${{ github.ref_name }}" != "main" ] && [ "${{ github.ref_name }}" != "v3-stable" ]; then
+ echo "❌ Error: Releases can only be triggered from main or v3-stable"
50
echo "Current ref: ${{ github.ref }}"
51
exit 1
52
fi
@@ -246,7 +246,7 @@ jobs:
246
id: push-tag
247
248
git tag "v${{ steps.new-version.outputs.version }}"
249
- git push origin main
+ git push origin HEAD:${{ github.ref_name }}
250
git push origin "v${{ steps.new-version.outputs.version }}"
251
252
- name: Publish to PyPI
0 commit comments