Skip to content

Commit a380ded

Browse files
committed
add job to create wrapper prs
1 parent e557260 commit a380ded

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/publish-release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,23 @@ on:
88
workflow_dispatch:
99
inputs:
1010
ref:
11-
description: 'Branch or commit SHA to run on (e.g., main, 5.3-main)'
11+
description: "Branch or commit SHA to run on (e.g., main, 5.3-main)"
1212
type: string
1313
required: false
14-
default: 'main'
14+
default: "main"
1515

1616
permissions:
1717
contents: write
18+
pull-requests: write
1819

1920
concurrency:
2021
group: ${{ github.workflow }}-${{ github.ref }}
2122
cancel-in-progress: true
2223

2324
jobs:
2425
publish:
26+
outputs:
27+
sdk_version: ${{ steps.extract_version.outputs.version }}
2528
runs-on: macos-13
2629

2730
env:
@@ -63,7 +66,7 @@ jobs:
6366
- name: Setup Ruby
6467
uses: ruby/setup-ruby@v1
6568
with:
66-
ruby-version: '3.0'
69+
ruby-version: "3.0"
6770

6871
- name: Install CocoaPods
6972
run: |
@@ -181,3 +184,11 @@ jobs:
181184
echo "📦 CocoaPods OneSignalXCFramework: https://cocoapods.org/pods/OneSignalXCFramework"
182185
echo "🔗 iOS SDK Release: https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/$VERSION"
183186
echo "🔗 XCFramework Release: https://github.com/OneSignal/OneSignal-XCFramework/releases/tag/$VERSION"
187+
188+
wrapper_prs:
189+
needs: publish
190+
uses: OneSignal/sdk-actions/.github/workflows/create-wrapper-prs.yml@main
191+
secrets:
192+
GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
193+
with:
194+
ios_version: ${{ needs.publish.outputs.sdk_version }}

0 commit comments

Comments
 (0)