Skip to content

Commit 1d5ce17

Browse files
committed
Update Package.swift with the action
1 parent 0ffa8c9 commit 1d5ce17

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ jobs:
3939

4040
- name: Build Binaries
4141
run: |
42-
chmod +x ./iOS_SDK/OneSignalSDK/build_all_frameworks.sh
4342
cd iOS_SDK/OneSignalSDK
43+
chmod +x ./build_all_frameworks.sh
4444
./build_all_frameworks.sh
45-
# chmod +x ./iOS_SDK/OneSignalSDK/update_swift_package.sh
46-
# ./iOS_SDK/OneSignalSDK/update_swift_package.sh
45+
shell: bash
46+
- name: Update Swift Package
47+
run: |
48+
cd iOS_SDK/OneSignalSDK
49+
chmod +x ./update_swift_package.sh
50+
./update_swift_package.sh $version
4751
shell: bash
4852
- name: Commit Changes
4953
env:

iOS_SDK/OneSignalSDK/update_swift_package.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ set -e
44
WORKING_DIR=$(pwd)
55

66
#Ask for the new release version number to be placed in the package URL
7-
echo -e "\033[1mEnter the new SDK release version number\033[0m"
8-
read VERSION_NUMBER
7+
# echo -e "\033[1mEnter the new SDK release version number\033[0m"
8+
# read VERSION_NUMBER
9+
VERSION_NUMBER=$1
910

1011
update_framework() {
1112
FRAMEWORK_FOLDER_NAME=$1

0 commit comments

Comments
 (0)