Skip to content

Commit

Permalink
commit to a specific release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
emawby committed Jan 17, 2024
1 parent 655152a commit f6802fc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ on:
type: string
description: "The version number of the release"
required: true
release_branch:
type: string
description: "The release branch with bumped version numbers for the release"
required: true
env:
version: '5.0.6'
release_branch: 'elliot_test_release'

jobs:
build:
Expand All @@ -34,7 +39,11 @@ jobs:
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
# - name: Bump Version Number
# run: |

- name: Checkout release branch
run: |
git config --local user.email "[email protected]"
git config --local user.name "SyncR 🤖"
git checkout ${{env.release_branch}}
- name: Build Binaries
run: |
cd iOS_SDK/OneSignalSDK
Expand All @@ -60,15 +69,15 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: 'OneSignal/OneSignal-iOS-SDK'
force: true
branch: ${{env.version}}
branch: ${{env.release_branch}}

- name: "Submitting PR"
uses: octokit/[email protected]
with:
route: POST /repos/{owner}/{repo}/pulls
owner: OneSignal
repo: OneSignal-iOS-SDK
head: ${{env.version}}
head: ${{env.release_branch}}
base: main
title: |
"Release ${{env.version}}"
Expand Down

0 comments on commit f6802fc

Please sign in to comment.