Skip to content

Commit 54ca1f5

Browse files
Fix conditional PR creation for release branches (#146)
Co-authored-by: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com>
1 parent fc0511f commit 54ca1f5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/PUSH-OTHER.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ jobs:
9393

9494
pull_request:
9595
name: Create Pull Request
96-
if: ${{ !startsWith(github.ref, 'refs/heads/release') }}
9796
runs-on: ubuntu-24.04-arm
9897
steps:
9998
- name: Checkout
@@ -159,6 +158,16 @@ jobs:
159158
draft: true
160159
get_diff: true
161160

161+
- name: PR - release (conditional)
162+
if: startsWith(github.ref, 'refs/heads/release')
163+
uses: devops-infra/action-pull-request@master
164+
with:
165+
github_token: ${{ secrets.GITHUB_TOKEN }}
166+
assignee: ${{ github.actor }}
167+
label: release
168+
template: .tmp/PULL_REQUEST_TEMPLATE.md
169+
get_diff: true
170+
162171
- name: PR - other branches (conditional)
163172
if: ${{ !(startsWith(github.ref, 'refs/heads/bug') || startsWith(github.ref, 'refs/heads/dep') || startsWith(github.ref, 'refs/heads/doc') || startsWith(github.ref, 'refs/heads/feat') || startsWith(github.ref, 'refs/heads/test')) }}
164173
uses: devops-infra/action-pull-request@v0.6.0

0 commit comments

Comments
 (0)