Skip to content

Commit 862294b

Browse files
committed
commit to a specific release branch
1 parent 7efc91a commit 862294b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/cd.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ on:
1111
type: string
1212
description: "The version number of the release"
1313
required: true
14+
release_branch:
15+
type: string
16+
description: "The release branch with bumped version numbers for the release"
17+
required: true
1418
env:
1519
version: '5.0.6'
20+
release_branch: 'elliot_test_release'
1621

1722
jobs:
1823
build:
@@ -34,7 +39,11 @@ jobs:
3439
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
3540
# - name: Bump Version Number
3641
# run: |
37-
42+
- name: Checkout release branch
43+
run: |
44+
git config --local user.email "[email protected]"
45+
git config --local user.name "SyncR 🤖"
46+
git checkout ${{env.release_branch}}
3847
- name: Build Binaries
3948
run: |
4049
cd iOS_SDK/OneSignalSDK
@@ -60,15 +69,15 @@ jobs:
6069
github_token: ${{ secrets.GITHUB_TOKEN }}
6170
repository: 'OneSignal/OneSignal-iOS-SDK'
6271
force: true
63-
branch: ${{env.version}}
72+
branch: ${{env.release_branch}}
6473

6574
- name: "Submitting PR"
6675
uses: octokit/[email protected]
6776
with:
6877
route: POST /repos/{owner}/{repo}/pulls
6978
owner: OneSignal
7079
repo: OneSignal-iOS-SDK
71-
head: ${{env.version}}
80+
head: ${{env.release_branch}}
7281
base: main
7382
title: |
7483
"Release ${{env.version}}"

0 commit comments

Comments
 (0)