-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update path
- Loading branch information
Showing
1 changed file
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: iOS CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'add_cd' | ||
|
||
workflow_dispatch: | ||
inputs: | ||
version: | ||
|
@@ -9,6 +13,8 @@ on: | |
required: true | ||
permissions: | ||
contents: write | ||
env: | ||
version: '5.0.6' | ||
|
||
jobs: | ||
build: | ||
|
@@ -27,14 +33,14 @@ jobs: | |
|
||
- name: Build Binaries | ||
run: | | ||
chmod +x ./../../iOS_SDK/OneSignalSDK/build_all_frameworks.sh | ||
./../../iOS_SDK/OneSignalSDK/build_all_frameworks.sh | ||
# chmod +x ./../../iOS_SDK/OneSignalSDK/update_swift_package.sh | ||
# ./../../iOS_SDK/OneSignalSDK/update_swift_package.sh | ||
chmod +x ./iOS_SDK/OneSignalSDK/build_all_frameworks.sh | ||
./iOS_SDK/OneSignalSDK/build_all_frameworks.sh | ||
# chmod +x ./iOS_SDK/OneSignalSDK/update_swift_package.sh | ||
# ./iOS_SDK/OneSignalSDK/update_swift_package.sh | ||
shell: bash | ||
- name: Commit Changes | ||
env: | ||
version: ${{ inputs.version }} | ||
version: $version | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "SyncR 🤖" | ||
|
@@ -47,18 +53,18 @@ jobs: | |
# github_token: ${{ secrets.ACTION_TOKEN_PAT }} | ||
repository: 'OneSignal/OneSignal-iOS-SDK' | ||
force: true | ||
branch: ${{ inputs.version }} | ||
branch: $version | ||
|
||
- name: "Submitting PR" | ||
uses: octokit/[email protected] | ||
with: | ||
route: POST /repos/{owner}/{repo}/pulls | ||
owner: OneSignal | ||
repo: OneSignal-iOS-SDK | ||
head: ${{ inputs.version }} | ||
head: $version | ||
base: main | ||
title: | | ||
"Release ${{ inputs.version }}" | ||
"Release $version" | ||
body: | | ||
"Add Release Notes For Review Here" | ||
# env: | ||
|